开发者

Open view in another tab - iphone

开发者 https://www.devze.com 2023-01-21 03:56 出处:网络
I want to allow the user to click on a button in \"tab A\" and have it move to \"tab B\". I开发者_开发知识库s this possible?

I want to allow the user to click on a button in "tab A" and have it move to "tab B". I开发者_开发知识库s this possible?

Thanks, William


"removeFromSuperview" then "addToSubview".


Thanks for the responses, I actually discovered that this could be done using:

self.tabBarController.selectedIndex = numberOfTabToPopTo;

Using the below code to then tidy the controller up leaving:

[self.navigationController popToRootViewControllerAnimated:NO];
0

精彩评论

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