pushviewcontroller

PushViewController with tabBarController not working

南笙酒味 提交于 2019-12-13 05:08:33
问题 I have a tabBar application. One of the tabs has a rootviewcontroller that creates a UITableView and adds it to the subview. When a user clicks a cell in the UITableView I want to push a new rootviewcontroller but I cant get it to work. In my appDelegate: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { //Create the window self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease]; //Create the

Act on click of a button on the Nav Bar for moreNavigationController — Can't pushviewcontroller

我的梦境 提交于 2019-12-13 04:44:24
问题 Okay, here is my issue: My app has a display of categories in the tab bar at the bottom of the iPhoneOS screen. This only allows 5 categories before it presents the MORE button. I have over 25 (please do not answer this by saying: "Rethink your application...etc" -- that was rudely said before. They are food, drink, etc categories and cannot be changed). I want to allow the user to put their favorites on the home page. The Apple moreNavigationController editing system only allows 20 tab bar

ios7 navigationController pushViewController animated bug

蹲街弑〆低调 提交于 2019-12-12 13:21:19
问题 It looks like I found a bug in the navigationController pushViewController method. To recreate it I took the sample master detail project and made some changes to the -didSelectRow: method: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { DetailViewController* view = [self.storyboard instantiateViewControllerWithIdentifier: @"view"]; NSDate *object = _objects[indexPath.row]; [view setDetailItem:object]; [self.detailViewController

iOS Push UIViewController on slide gesture like Snapchat

烂漫一生 提交于 2019-12-12 09:25:07
问题 I have a question about iOS push navigation controllers. I want to push view controller on slide gesture. Just like as in Snapchat application: main view captures images. If you slide from left to right, snapchat messages view smoothly slides (pushes) to main window. If you slide from right to left > contacts view. How to create this kind of navigation? Thanks a lot! 回答1: I believe the way that Snapchat does it is through UIViewController containment. Essentially, the main view controller

Enable Zombie Objects is not enough to help debug my issue - what else can I do?

こ雲淡風輕ζ 提交于 2019-12-12 01:57:41
问题 I'm getting the following runtime error and I cannot determine for the life of me WHYYYY. The error is Thread 1: EXC_BREAKPOINT (code=EXC_1386_BPT, subcode=0x0) which seems to happen whenever I execute the dismissModalViewController:animated or the pushViewController:animated method from any of my VC's. I have enabled zombie objects and that shows me the following message in the debugger, 2012-06-14 16:34:58.769 MyApp[5952:17903] *** -[MyDetailsVC respondsToSelector:]: message sent to

pushViewController from another class

若如初见. 提交于 2019-12-12 01:14:14
问题 I want to push a view controller from my FirstViewController to load BookDetailsViewController . here's the setup I currently have. // FirstViewController:(this is inside a uinavigationcontroller) -(IBAction)viewBookDetails:(id)sender { NSLog(@"woo"); BookDetailsViewController *bdvc = [[BookDetailsViewController alloc] init]; [self.navigationController pushViewController:bdvc animated:YES]; } ============================================================== // BookScrollViewController: (where

UINavigationController , pushViewController Error

纵饮孤独 提交于 2019-12-12 00:44:09
问题 I have 2 view controller VC1 has button in this button action - (IBAction)clickSearch:(id)sender { NSArray *vc=[self.navigationController viewControllers]; ViewControllerSearch *vcSearch=nil; for (int i=0; i<[vc count]; i++) { UIViewController *tempVC=[vc objectAtIndex:i]; if([tempVC isKindOfClass:[ViewControllerSearch class]]) { vcSearch=[vc objectAtIndex:i]; break; } } if(vcSearch) { [self.navigationController popToViewController:vcSearch animated:YES]; } else { ViewControllerSearch *vc3New

Interchanging presentModalViewController and pushViewController

走远了吗. 提交于 2019-12-11 20:36:26
问题 I am using a sample ViewController that is displayed in the sample program as a presentModalViewController. However, I want to use pushViewController on the UIViewController instead. The problem is that when I switch to pushViewController, the ViewController no displays properly. Functions in the ViewController are called, but I don't see anything. I change back to presentModalViewController and everything works. The question is what do I need to do to make pushViewController work? FCVC *fcVC

Tabs do not show when using PushViewController

懵懂的女人 提交于 2019-12-11 12:39:04
问题 I'm trying to use the following code to display a tabbarcontroller UITabBarController *tc = [[self storyboard] instantiateViewControllerWithIdentifier:@"tabbarcontroller"]; [self.navigationController pushViewController:tc animated:YES]; It does load the view, and I can tell it which of the tabs I want it to default to. The problem is the tabs don't show. From what I've read I gather it has something to do with putting the tab controller inside of the navigation controller, but I couldn't find

Navigation controller not displaying back button when same class is reused

ぐ巨炮叔叔 提交于 2019-12-11 06:48:31
问题 I'm doing a navigation based application. Let me explain a little bit about the application. At the program load table view will show 3 options like: Hotel Restaurants Cafe If a user selects any of the above options, it will navigate to another table view and show sub options. And it'll continue up-to 6 to 7 levels. So I in the didSelectRowAtIndexPath: of the tableView's class (Sales) I created it's own object and using [self.navigationController pushViewController:myViewController animated