iOS 6 navigation - do I have to use storyboards? - xcode

I have an app that is working fine for iOS 5, I've just installed the iOS 6 simulator and my navigation is no longer working at all. Also my viewWillAppear and viewDidAppear methods are no longer firing.
I'm using [self.navigationController pushViewController:vc animated:YES]; to navigate. Do I have to use StoryBoards to navigate in iOS 6?
Thanks

No, Storyboards are optional and have been around since iOS 5.0. If your navigation is broken it'll be due to errors in your code.

Related

UIPickerView is not showing and CLLocationManager is not working in iOS 8

I want to my already build app work on iOS 8, so I install Xcode 6.0 and run my app into iOS 8 it is showing me few issues.
Picker view's values are not showing UIPickerView in iOS 8.
Location CLLocationManager is not working in iOS 8.
Kindly help me on these if some body faced these issues already. Looking for response.
Thanks.
In iOS 8 you need 2 parts to get permission for CLLocationManager.
Provide one of the following strings in the info.plist file
NSLocationAlwaysUsageDescription
NSLocationWhenInUseUsageDescription
Call the appropriate permission method in code which matches the string above
requestAlwaysAuthorization
requestWhenInUseAuthorization

InputAccessoryView does not show on iOS 8 simulator

I have iOS application since iOS 5, it includes a custom UITextView which use its own inputView and inputAccessoryView. It works with iOS 7 simulator, when it becomeFirstResponse, both inputView and inputAccessoryView show, but with iOS 8 simulator, only associated inputView shows, the inputAccessoryView does not show.
I am using Xcode 6 GM seed
HeInput_TextView.m
- (void)awakeFromNib
{
self.text = #"";
heKeyboard4x5 = [[HeKeyboard_ViewController alloc] init];
inputAccessoryVC = [[InputAccessory_ViewController alloc] init];
self.inputView = heKeyboard4x5.view;
self.inputAccessoryView = inputAccessoryVC.view;
}
Is it a bug in iOS 8 simulator or a change for iOS 8?
Edit:
I found more information about this problem.
This problem happens in Page-Based application, if an UITextView in a page of UIPageViewController, then the UITextView.inputAccessoryView doesn't show at iOS 8 simulator, but shows in iOS 7.1 simulator.
I creates two projects: 'Single-View Based application' and 'Page-Based application', and confirmed the problem happens as described above.
it is new behaviour of simulators in xcode 6. to see your custom accessory view or even default one try to uncheck hardware -> simulator -> connect harware keyboard.
It's an iOS8 bug.
You can reproduce it on the simulator in Apple's Contacts App.
Add a new contact and scroll down to "add a date".
Same problem. A colleague has raised an apple rdar.
I've found view accessories in iOS8 don't use the view's frame to offset their height above your InputView (or even the default software keyboard).
You might need to make sure your inputAccessoryView implements
-(CGSize)intrinsicContentSize
eg:
#implementation InputAccessory_View
// .. your code ...
-(CGSize)intrinsicContentSize{
return self.frame.size;
}
#end
My apologies, I misread the item. I've been driven batty by iOS8's keyboard issues.

ios8 iPad splitview view issue

I am trying to ran my ios app using xcode 6 with ios8. On iOS8 ipad
splitview(basically master and detail screen) not rendering properly
but in ios7 it was able to render properly without any issues. The
issue was the maser view moved bit left since am seeing some unknown
images on right hand side of the master table view. This happens when i do change the orientation from portrait to landscape and vice verse.
Any idea how to fix this on ios8 ipad splitview?. For more info attaching screenshot
use this code in UITableViewController (or higher in hierarchy)
[[UITableViewCell appearance] setBackgroundColor:[UIColor whiteColor]];
Change the [UIColor whiteColor] to the color you want to replace the green with.
Setting background color for cell or content view in storyboard in Xcode does not solve the problem.
This problem occurs only on iPad under iOS 7.1.2 & 8.1 (i use these versions) and does not occur on iPhone (4S with iOS 8.1, 5S with 7.1.2, 6 with 8.1).
May be it happened in combination of Xcode 6.1 iOS 8.1 SDK and UISplitViewController.

Xcode 6 beta iPad simulator portrait no split view on launch

In iPad i am using split view controller (one of my existing apps). Using Xcode 6 beta: If I launch the iPad simulator(s) with the device in portrait orientation it only shows the detail view and not the master view as well (and no "master" back button). If I rotate then to landscape all appears fine, rotate back to portrait and the "master"back button appears and can then access the master table view. With previous versions of Xcode the split view launches in portrait view.
I also noticed this, it seems to be a bug in Xcode 6 and iOS Simulator 8. You can send a bug report to Apple here
I had the same issue when running my app on the iOS8 simulator using xCode6-beta2. However, when I ran the app on my iOS7 device, the master view title showed up correctly. Sounds like an iOS8 issue.

How to solve changing location for Controls due to expansion in xcode 4.5 for UIView?

I have upgraded my xcode to 4.5 every thing is fine until I have added to my previous solution (which I had already developed it using xcode 4.3) new UIView which has a UIImageview control I have noticed that UIImage control location in xib differ than it's location when i run my app on ios5 devices
Any Idea how to solve this issue?
I'm not sure that i've understand your question correctly.
Try to hide device's statusbar.
You can do it in a current target settings or programmatically:
[UIApplication sharedApplication] setStatusBarHidden...

Resources