pushviewcontroller

How to hide the bar button item on click of a button?

廉价感情. 提交于 2019-12-11 05:57:09
问题 in my app say i have 2 pages on click on next button(using push view controller) in page 1 it ill navigate to 2nd page , in the 2nd page i have a download(UIButton , not in the navigation bar) button , on click of that i need to hide the back button if back button is created by us we can hide it by using the following code self.navigationItem.leftBarButtonItem = nil; but i am not getting how to hide that back button,,can any one help me, thanx in advance 回答1: You can hide the back button

CATransition white flash in background?

无人久伴 提交于 2019-12-11 04:01:56
问题 I'm trying to make a pushViewController slide in from the left, not the right, as follows: Page14Controller * controller = [[Page14Controller alloc] initWithNibName:@"Page14Controller" bundle:nil]; CATransition* transition = [CATransition animation]; transition.duration = 0.3; transition.type = kCATransitionPush; // transition.type = kCATransitionMoveIn; transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]; //kCATransitionMoveIn; //,

(iphone) showing activity indicator before heavy ui updating

夙愿已清 提交于 2019-12-11 02:39:37
问题 I'm adding activity indicator view before doing some heavy ui updating (pushViewController takes a while to load view). For some reason, indicator view doesn't appear until the new viewController is pushed. (indicator view shows up right before the viewController push animation takes place, although my intention was to show the indicator while a device takes long time before the animation) Should I do something more than adding the indicator view as a subview? I already tried [indicatorView

Unable to pushViewController iOS

烂漫一生 提交于 2019-12-11 02:04:44
问题 I am using storyboard in my app, : I have Button in my View , On click of button i want to navigate to new View But when i click on button nothing happens, Here is my Code: - (IBAction)JoinClicked:(id)sender{ JoinWithViewController *detail_view_controller = [[JoinWithViewController alloc] initWithNibName:@"JoinWithViewController" bundle:nil]; [self.navigationController pushViewController:detail_view_controller animated:YES]; } Where i am doing mistake , please help. Thanks in advance. 回答1:

How can I show ViewController in UITabBarController?

泄露秘密 提交于 2019-12-09 19:05:05
问题 I have a UITabBarController and all my other view controllers are connected to it. Now I want to show one my controller as: let storyboard = UIStoryboard(name: "Main", bundle: nil) let vc: ViewController = storyboard.instantiateViewControllerWithIdentifier("ViewController") as! ViewController but when I tried to: let rootViewController = self.window?.rootViewController as! UINavigationController rootViewController.pushViewController(vc, animated: true) it gave me the next error: Could not

How return a value from view2 to view1 when using navigation bar

≯℡__Kan透↙ 提交于 2019-12-09 13:25:06
问题 I am New to the iPhone Development. How can i carry a string value from view2 to view1 when using navigation bar. I have no problem in carrying string values from view1 to view2 to view3 to....by using pushviewcontroller But when i come back to previous views using Back button of navigation bar, I cannot able to hold string values. I need your help in solving this issue. Thanks In Advance 回答1: This thing can be done easily if the pass the reference of the current class to the next class and

PushViewController Crash in IOS7

那年仲夏 提交于 2019-12-08 13:43:12
问题 I am facing strange issue in IOS7 when I try to run my old app in xcode5 with IOS6 every thing working fine,but with IOS7 when I am trying to Push Nextview it Crash.Here is code where my app Crash. FamilyBioViewController *detailView=[[FamilyBioViewController alloc] initWithNibName:@"FamilyBioView" bundle:[NSBundle mainBundle]]; [self.navigationController pushViewController:detailView animated:YES]; [detailView release]; When crash happened it did not show any error in console.The below

Having problem with pushViewController!! Help

给你一囗甜甜゛ 提交于 2019-12-08 13:31:29
问题 tabBarController = [[UITabBarController alloc] init]; //Create a tab bar view1 = [[View1 alloc] init]; //Create the first view UINavigationController *navigationController1 = [[UINavigationController alloc] initWithRootViewController:view1]; navigationController1.navigationBar.tintColor =[UIColor blackColor]; view2 = [[View2 alloc] init]; //create the second view UINavigationController *navigationController2 = [[UINavigationController alloc] initWithRootViewController:view2];

IOS notification content extension: add buttons in storyboard and handle the click action

和自甴很熟 提交于 2019-12-08 09:50:35
问题 IOS notification content extension: add buttons in MainInterface.storyboard and handle the click action without dismissing the notification 回答1: after making some research I discover that: can not handle buttons clicks in the IOS notification content extension, only the type of button can be used is the media button, see the IOS documentation: https://developer.apple.com/documentation/usernotificationsui/unnotificationcontentextension 回答2: The up answer is not correct, you can just add

pushViewController stuck or viewdidappear fail

送分小仙女□ 提交于 2019-12-08 07:39:24
问题 I am just pushing new VC like this. [nav pushViewController:vc animated:YES]; However, it doesn't push. The new view reach the state - viewwillappear but viewDidAppear fail to reach sometime. I can swipe back to go back. I have checked new view frame and it is also normal. View frame is {{0, 64}, {320, 455}}. May I know where bug can occur? 回答1: Please check if your UIViewController is pushed or presented. If it is pushed then you can push a new UIViewController then you can push new view