uinavigationcontroller

Auto Layout in Navigation Controller with UISegmentedControl: good in iOS7, bad in iOS6

左心房为你撑大大i 提交于 2019-12-25 12:09:50
问题 For a navigation controller I like to have a few controls placed in a view from top towards the bottom. I am using auto layout and added constraints, so that the views have a vertical gap to each other. This looks nice for iOS7 and iOS6 in a normal view controller, also for iOS7 in a navigation controller; but wrong in iOS6. The UISegmentedControl shows up wrong. See the screenshots. It looks like the larger height of the UISegmentedControl is not taken into account for iOS6 view. Also it

Apple's core location prompt - why does it jump back to Root View controller?

寵の児 提交于 2019-12-25 10:49:19
问题 I have an iPhone app using a UINavigationController. On the fourth controller of the stack, I'm doing some Core Location stuff - so, the first couples of times that the user uses my app, they are asked if it's ok to use Location Services. This is a process that (I think) I don't have any control over. After the user confirms, they are actually bumped back to my root view controller in the navigation controller stack. Is this a bug, am I doing something wrong, or is this expected behavior? I

Apple's core location prompt - why does it jump back to Root View controller?

爷,独闯天下 提交于 2019-12-25 10:48:30
问题 I have an iPhone app using a UINavigationController. On the fourth controller of the stack, I'm doing some Core Location stuff - so, the first couples of times that the user uses my app, they are asked if it's ok to use Location Services. This is a process that (I think) I don't have any control over. After the user confirms, they are actually bumped back to my root view controller in the navigation controller stack. Is this a bug, am I doing something wrong, or is this expected behavior? I

How to Navigate UIViewController from UIView

时间秒杀一切 提交于 2019-12-25 09:28:29
问题 Hi I'm New to iOS Development and Please give me a solution to navigate to UIViewController from an UIView: This is the code I have used but it is not working acceptedJobDetailViewController *acceptedJobDetailViewController = [[UIStoryboard storyboardWithName:@"Main" bundle:nil] instantiateViewControllerWithIdentifier:@"acceptedJobDetailViewController"]; [self.navigationController pushViewController:acceptedJobDetailViewController animated:YES]; Also i tried this below code to push the

UISearchBar in a UIViewController crashing

£可爱£侵袭症+ 提交于 2019-12-25 08:52:34
问题 I am having a weird crash when using UISearchBar. I have a view controller on a storyboard and everything works fine but as soon as a drag a UISearchBar in the view controller and then run the app, I get the following crash: * thread #1: tid = 0x6d83b, 0x0462169e libsystem_kernel.dylib`__pthread_kill + 10, queue = 'com.apple.main-thread', stop reason = signal SIGABRT frame #0: 0x0462169e libsystem_kernel.dylib`__pthread_kill + 10 frame #1: 0x045ef2c5 libsystem_pthread.dylib`pthread_kill + 101

Navigation Title View Issue in iOS 11

拟墨画扇 提交于 2019-12-25 08:49:38
问题 I am facing an issue on Navigation bar items in iOS 11 as below screen shot and the two bar button also not executing any button actions. It is working perfectly on iOS 10.x.x and below with same auto layouts and size. Following screenshot is showing how custom Navigation bar IB implemented. . I tried with following codes too.. if (@available(iOS 11.0, *)) { [[self navigationController] navigationBar].prefersLargeTitles = NO; [[self navigationController] navigationItem].largeTitleDisplayMode

Objective C how to stop infinte loop while moving from first VC to 2nd

本小妞迷上赌 提交于 2019-12-25 07:49:18
问题 I am trying to build a splash screen so I want the 1st View Controller to move to 2nd ViwController automatically after 3.0 sec I have tried the below method but an infinite loop has started what should i do ,how should I stop on second view controller. - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. NSLog(@"%p", self); NSLog(@"1st Controller"); [self.navigationController setNavigationBarHidden:YES animated:YES]; dispatch

Move to another storyboard without a UINavigationController

◇◆丶佛笑我妖孽 提交于 2019-12-25 07:19:02
问题 I've got two storyboards. I found some code on how I can instantiate the initial View Controller of another Storyboard and move (or do you say segue?) to that. But those examples used a Navigation Controller. The user shouldn't be able to go back to the previous Storyboard in my case (login page). The app can forget about the old Storyboard, it's not needed ever again when I move over to the new one. So the View Controller on top of the hierarchy in the first Storybard can be forgotten about,

UITabbarController's “Done” button hidden behind UINavigationController

∥☆過路亽.° 提交于 2019-12-25 06:49:08
问题 I'm building a project using Xcode 4.2 and I'm also using the Storyboard. So basically, I have a UINavigationcontroller which is my initial view, connected to my "Main Menu" view. Inside my "Main Menu" I have a button that is linked to a tabbar controller, which has like 20 tabs. Therefore, a "More" button appears and when the "more" button is clicked an "edit" button appears. Everything works fine, but the only problem I have is that once I click edit, the configure page slides up and the

How can i add my UINavigationController and my Tabbar to UIAddressBook

混江龙づ霸主 提交于 2019-12-25 06:46:23
问题 I want to use my custom UINavigationController and UITabbar for my app it is possible? 回答1: Ofcourse it is possible to make custom navigationController with UITabbar.Though i suggest you to take a navigation based application and a Tabbar in it. You can use the sample code NSMutableArray *controllers = [[NSMutableArray alloc] init]; FirstVC *firstController = [[FirstVC alloc] initWithNibName:@"FirstVC" bundle:[NSBundle mainBundle]]; UINavigationController *firstControllerNav = [