开发者

How do I push a new controller via UIButton, nested in a UIScrollView?

开发者 https://www.devze.com 2022-12-17 11:44 出处:网络
开发者_JS百科I have my views that are part of a tabBar. Each view has a navigationController. In one of my views I have an embeded xib component. This is a scrolling view
开发者_JS百科

I have my views that are part of a tabBar. Each view has a navigationController. In one of my views I have an embeded xib component. This is a scrolling view with UIButtons inside it.

I want to slide in another view, inside the navigationController when a person taps the button. I can get the taps, etc.

BUT, I can't figure out how to find the controlling navigationController of that page to push the new view into. Nothing seems to work that I have tried.

IS this possible?

Thanks


You need to pass a reference to the navigation controller "down" your view hierarchy. Or pass another object that has a reference to the navigation controller "down". Or get the app delegate if it has a reference to the navigation controller.

0

精彩评论

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