开发者

ScrollView with paging iphone sdk

in the main view controller i have a scrollview and paging control.

i have added another viewcontroller's view as a page of paging control in scrollview.

now i have 9 buttons on that view controller's view which is inside scroll view.

now when i click on the buton i w开发者_运维技巧ants that main view controller's view should be pushed to another view controller.

but not getting how it can be done as the buttons are in view which is in the scrollview.


When a user interface element created in interface builder seems not to be doing what you told it to do, you should verify that:

  • you saved your changes to the nib in IB
  • that you correctly declared your ivars/properties as IBOutlet and connected your outlets in IB
  • that there are no views hijacking your events.

If the buttons in your view inside the scroll view don't appear to be getting press events, you may need to adjust the userInteractionEnabled property of parent views.

You can "move" any view from one view hierarchy to another by doing:

[myView removeFromSuperview];
[anotherParentView addSubview:myView];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜