XCode 6 project crashing after segue on ios 7.1
It's a layout problem. Try to delete some suspected subviews and run. I solved the problem with this method. By the way, I think it's a bug in iOS7, which is solved in iOS 8.
iOS 7 Popover Controller crashing under xcode 6
Instead of calling a segue, I ended up assigning the laid out view controller I was trying to present as a popover, a Storyboard Identifier. I could then use this as the contentViewController for a popoverController. (I would not have access to [segue destinationViewController]
, as I am no longer displaying it as a segue)
The Push segue on iPhone, iOS7 seems unaffected so I have left it unchanged.
I had to make the (UIPopoverController*) popVC
property strong so as it retains a reference, then I free it when it is dismissed.
Below is the code I use to check for iOS version and device and where the segues where called from.
if ([NSProcessInfo instancesRespondToSelector:@selector(isOperatingSystemAtLeastVersion:)]) {
// conditionally check for any version >= iOS 8 using 'isOperatingSystemAtLeastVersion'
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) {
[self performSegueWithIdentifier:kiPadiOS8ColorPickerSegueID sender:nil];
} else {
[self performSegueWithIdentifier:kiPhoneiOS8ColorPickerSegueID sender:nil];
}
} else {
// we're on iOS 7 or below
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) {
//[self performSegueWithIdentifier:kiPadiOS7ColorPickerSegueID sender:nil];
FCColorPickerViewController *colorPickerVC = [[UIStoryboard storyboardWithName:@"Main" bundle:nil]instantiateViewControllerWithIdentifier:@"ColorPickerPopover"];// = [ destinationViewController];
colorPickerVC.delegate = self;
colorPickerVC.isPopover = YES;
self.popVC = [[UIPopoverController alloc] initWithContentViewController:colorPickerVC];
[self.popVC presentPopoverFromRect:CGRectMake(0, CGRectGetHeight(self.view.frame) - 50, CGRectGetWidth(self.view.frame), 50) inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
} else { // iPhone, iOS 7
[self performSegueWithIdentifier:kiPhoneiOS7ColorPickerSegueID sender:nil];
}
}
iOS 9 Segue Causes App To Freeze (no crash or error thrown)
So basically the segue was freezing because of the UITextView
's I was using in the destinationViewController
. The following fixed the issue:
- Delete all
UITextView
's - Add new UITextView's
- you must leave the default lorem imposed text and change this programmatically in the
viewDidLoad()
- you must leave the default lorem imposed text and change this programmatically in the
This was the fix for me, and from the research I have done on the issue it seems this is a bug in iOS 9 and Xcode 7.
Cheers!
NOTE: Removing the text in the UITextView (or making it longer then ~12 characters) is sufficient to work around it, no need to delete and recreate them. This is fixed in Xcode 7.1.1 and later.
iOS application crashes after AppStore publication
How I resolved the issue:
NSArray(contentsOfFile: path)
downcasting worked weird with swift arrays in archived app. Sometimes it downcasted normally, sometimes it returned nill
for the same plist file (no changes in file). I replaced all my [NSDictionary]
that worked with files into NSArray?
and it works good now.
The issue was only in archived for app store application (.ipa
). If I run it on simulator or on the device, it works good with swift arrays too.
Thanks for @fluidsonic for advice about casting.
Unwind Segues not working on Xcode 6
UPDATE: This has been fixed with the release of iOS 8.1.x
After a lot of fiddling around with this, my experience is that only view controllers presented modally are affected by this issue. The work around in this case is to set your segue presentation to Current Context
instead of Default
.
Credit to this SO poster https://stackoverflow.com/a/25842508/401092
Related Topics
Swift iOS - Tag Collection View
Using Haneke to Cache Then Play Mp4 Files with Avplayer
How to Create a Pfquerytableviewcontroller with Parse in Swift
Core Data Transient Values with Swift
Unusernotificationcenter.Current().Getdeliverednotifications Only Ever Returns an Empty Array
Get Center Coordinates from Mapkit and Display in Uilabel
Cocoa Singleton and Shared Instances
How to Keep the Header Cell Moving with the Tableview Cells in Swift 2.0
Uitextfield Keyboard with Only Alphabet, No Numbers, No Caps, No Spacebar
Uitableview Inside Uitableviewcell with Dynamic Height
iOS Swift Nsmutabledata Has No Member Appendstring
Using Static Libraries with Cocoapods 1.5 No Such Module at Import
Adding Uigesturerecognizer to Subview Programmatically in Swift
Programmatically Set Uipageviewcontroller Transition Style to Scroll
Add Gps Metadata Dictionary to Image Taken with Avfoundation in Swift