开发者

How to show a view from scrollview

开发者 https://www.devze.com 2023-01-20 04:54 出处:网络
I have a view that contains a ScrollView opening two xibs. There is a button on a Xib contained in ScrollView.

I have a view that contains a ScrollView opening two xibs. There is a button on a Xib contained in ScrollView. I want that after clicking the button, open a new view outside of the ScrollView. But I can not open a new view outside开发者_StackOverflow社区 the Scrollview. = /

Any suggestions?

Thanks.


present the view modally or in the root view. From your UIViewController, call [self.view.window.rootViewController presentModalViewController:newController animated:YES] or `[self.view.window.rootViewController.view addSubview:newView]'.

0

精彩评论

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