uinavigationcontroller

UISearchController in NavigationItem iOS 11 Apple way

心已入冬 提交于 2020-01-12 02:05:09
问题 In iOS 11 Apple presented new search bar, but yet in iOS 11.2.2 developer have push\pop animation bug when both view controllers have searchController. Apple demonstrate their vision in Files app. Do someone know how do it? edit#1 Question with broken animation. Broken UISearchBar animation embedded in NavigationItem 来源: https://stackoverflow.com/questions/48278159/uisearchcontroller-in-navigationitem-ios-11-apple-way

Why ARC is not deallocating memory after popViewController

本秂侑毒 提交于 2020-01-11 17:12:40
问题 I'm pushing and popping ViewControllers in UINavigationController. I'm tracking the memory consumption of my app. While pushing the new viewController the memory consumption is increasing gradually, but when I'm popping the same ViewController using [self.navigationController popViewControllerAnimated:NO]; the memory consumption does not decrease but the constant. That particular viewController can be pushed and popped by user many times which can lead the high memory consumption of app in

how iphone facebook app make the navigation bar fixed

↘锁芯ラ 提交于 2020-01-11 14:01:06
问题 I'm new in iPhone development and want to ask about the navigation controller. How can I make the navigation controller fixed over the whole application, like the facebook navigation bar. It always shows the notification, friends and messages in the navigation bar. I'm trying to put custom view in the titleView but it disappears every time the navigation push new view? 回答1: There was a similar question posted here (https://stackoverflow.com/questions/16773312/facebook-like-navigationbar),

viewDidDisappear not getting called on a UINavigationController

一个人想着一个人 提交于 2020-01-11 13:28:48
问题 I'm having a problem with my navigation controller. If I add a view controller to the stack: - (void) tui_ToggleListStudy:(id)sender { listVC = [[ListViewController alloc] init]; [self.navigationController pushViewController:listVC animated:NO]; [listVC release]; } I have NSLog messages for the view controller beneath, for both viewWillDisappear: and viewDidDisappear - but only viewWillDisappear: is getting called. Not only that, but the view controller doesn't receive any other delegate

How to customize navigation bar title font and size in UINavigationBar?

谁说胖子不能爱 提交于 2020-01-11 12:16:29
问题 I want to customize only a specific part of the navigation bar title. For example, "Navigation Bar Title." I made this sentence a title. In the case of "Navigation", apply blue color and system bold font, For "Bar Title." I want to apply red color and system regular fonts. How is it possible? 回答1: You should use a UILabel with an attributed title as a custom title view for your navigation bar. let titleLabel = UILabel() //attributes for the first part of the string let firstAttr:

UINavigation pushing a new root controller

↘锁芯ラ 提交于 2020-01-11 12:05:56
问题 I am trying to push a new root controller to a navigation stack, but using a side reveal menu. My app delegate has the following: welcomeViewController = [[MyWelcomeViewController alloc] initWithNibName:@"MyWelcomeViewController" bundle:nil]; navController = [[UINavigationController alloc] initWithRootViewController:welcomeViewController]; navController.navigationBarHidden = YES; // Then we setup the reveal side view controller with the root view controller as the navigation controller self

Restore default navigation bar appearance

大憨熊 提交于 2020-01-11 08:28:23
问题 I'm making an iOS app for iPhone, and I'm using a navigation controller. At some point during the navigation, I'm adding a UISegmentedControl to a view controller, just under the navigation bar from the navigation controller. I'm inserting new background and shadow images in the navigation bar, to make the UISegmentedControl appear as part of the navigation bar. I do it like this: // nav bar color image let rect = CGRectMake(0, 0, view.frame.width, 0.5) // Used in navBar, size dosn't matter

nested push animation can result in corrupted navigation bar multiple warning

故事扮演 提交于 2020-01-11 06:52:09
问题 I'm new in ios app developping and i'm having some trouble with multiple warnings. I have a Navigation Controller that load a table view. From that table view one touch on a cell pushes a new VC (basically, the detail of the cell). And on that "detailView", when a certain button is pushed, another VC is pushed. I push the last VC with the following code : - (IBAction)toMoreDetail:(id)sender { [self performSegueWithIdentifier:@"toMoreDetail" sender:self]; } And when i do that, 2 warnings are

iPhone UINavigationController inside UIViewController

假如想象 提交于 2020-01-10 20:12:04
问题 Steps: List item Create a project called Nav. Create a new UIViewController BaseViewController (with XIB) and FirstViewController (with XIB). In the NavAppDelegat.h define baseController variable @interface NavAppDelegate : NSObject <UIApplicationDelegate> { BaseViewController *baseController; } @property (nonatomic, retain) IBOutlet BaseViewController *baseController; In the NavAppDelegat.m add baseController to the window: @synthesize baseController; (BOOL)application:(UIApplication *

iPhone UINavigationController inside UIViewController

拥有回忆 提交于 2020-01-10 20:11:51
问题 Steps: List item Create a project called Nav. Create a new UIViewController BaseViewController (with XIB) and FirstViewController (with XIB). In the NavAppDelegat.h define baseController variable @interface NavAppDelegate : NSObject <UIApplicationDelegate> { BaseViewController *baseController; } @property (nonatomic, retain) IBOutlet BaseViewController *baseController; In the NavAppDelegat.m add baseController to the window: @synthesize baseController; (BOOL)application:(UIApplication *