sigabrt

SIGABRT Error “view outlet was not set”

大憨熊 提交于 2019-12-11 19:09:01
问题 I'm receiving a SIGABRT error when attempting to run my application on my iPhone 5. My application basically requires 3 views, and depending on which device you're running (iPhone 4, iPhone 5 or iPad), it will launch the view specific to your device type. The SIGABRT error: Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "ViewController_Portrait5" nib but the view outlet was not set.' I'm

Why do I get signal SIGABRT when I select a created button?

China☆狼群 提交于 2019-12-11 10:14:08
问题 I'm creating a button in swift 2 and when I select it, I get signal SIGABRT and the app crashes. Heres the code: let button = UIButton()//(type: UIButtonType.System) as UIButton! button.setTitle("button", forState: .Normal) button.setTitleColor(UIColor.blueColor(), forState: .Normal) button.addTarget(self, action: "buttonPressed:", forControlEvents: UIControlEvents.TouchUpInside) button.frame = CGRectMake(100, 100, 100, 100) self.view.addSubview(button) func buttonPressed(sender: UIButton!) {

pushViewController Not Working on iOS 5 (OK on iOS 6)

大兔子大兔子 提交于 2019-12-11 09:56:38
问题 I have a UINavigationController that displays several buttons on screen. They all simply use the line: myViewController *newView = [[myViewController alloc] initWithNibName:@"myViewController" bundle:nil]; [[self navigationController] pushViewController:newView animated:YES]; to transition to the next view. I have one such view controller however that results in a crash at this very line ONLY on iOS 5. It works perfectly fine on iOS 6. I am baffled. There are no real details to the crash. It

Static TableView gets NSRangeException

二次信任 提交于 2019-12-11 07:22:03
问题 I have a UITableViewController with static cells, and when I run the app and click on the button that leads to it, I get a SIGABRT signal in AppDelegate. I tried to find unused outlets, but it didn't work. Here is the Console Log: The UITableViewController Code: import UIKit import os.log class SettingsTableViewController: UITableViewController { // MARK: Properties @IBOutlet weak var noteDisplayKindSwitch: UISwitch! override func viewDidLoad() { super.viewDidLoad() notedisplayKindSwitch

Multicolour Text in Swift

血红的双手。 提交于 2019-12-11 04:37:09
问题 Can you please help me, I tried to make multicolour text but I get a SIGABRT error but absolutely don't know from were it comes from. Here's the code: class ViewController: UIViewController { @IBOutlet weak var ColoredTxt: UILabel! override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. var Timer = NSTimer.scheduledTimerWithTimeInterval(0.1, target: ColoredTxt, selector: Selector("ColoredTxt"), userInfo: nil, repeats: true) }

Setting UILabel background color causes app to crash

可紊 提交于 2019-12-11 03:18:56
问题 I have the following code: UIImageView *photo = [[[UIImageView alloc] initWithFrame:CGRectMake(title_bar.titleView.frame.origin.x+130, title_bar.titleView.frame.origin.y-12, 22.0, 22.0)] autorelease]; UIImage *theImage = [UIImage imageNamed:@"question mark icon"]; photo.image = theImage; UIView *new_view = [[UIView alloc] init]; [new_view addSubview:photo]; UILabel *new_label = [[UILabel alloc] initWithFrame:CGRectMake(title_bar.titleView.frame.origin.x-145, title_bar.titleView.frame.origin.y

“Sigabrt Error” - Codechef

血红的双手。 提交于 2019-12-11 02:20:06
问题 The following code ran perfectly in my DEV-C++ compiler but when I submitted in codechef, after running for 3-4 seconds it shows "SIGABRT ERROR". I have researched on this error and have done everything i could to debug, but even after a week I am not able to. Please Help !! Thanks in advance. For reference question is http://www.codechef.com/problems/LOWSUM enter code here void selsort(long long *ssum,long long len) { long long low; for(long long i=0;i<len;i++) { low = ssum[i]; long long pos

How can I fix this SIGABRT error with my app? [closed]

这一生的挚爱 提交于 2019-12-11 01:32:33
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . I am currently developing an app in Xcode 4 for the IPhone and I have com across this error, "Thread 1: Program Received Signal: SIGABRT", This error is in my main.m code. // // main.m // MyCard // // Created by Nazar Gren on 2/2/12. // Copyright (c) 2012 Nazar Gren. All rights reserved. // #import <UIKit/UIKit

[UIImageView _isResizable]: unrecognized selector sent to instance SIGABRT

烂漫一生 提交于 2019-12-10 03:32:40
问题 I've got this code trying to run a simple set of images in a cycle. All I have in the app is one UIImageView declared in my View Controller's .h file: @property (strong, nonatomic) IBOutlet UIImageView *imageDisplay; And the following in my .m file's viewDidLoad method: NSMutableArray *imageView = [[NSMutableArray alloc] init]; [imageView addObject:[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"EyeAnim1.png"]]]; [imageView addObject:[[UIImageView alloc] initWithImage:[UIImage

NSLayoutConstraint SIGABRT on iPad

你离开我真会死。 提交于 2019-12-08 11:53:06
问题 Application is made in Interface builder. Seperate storyboards for iPhone and iPad. Project runs and works properly on iPhone Simulator, iPad Simulator, iPhone 4 with newest iOs, but I get this error when I build it on 'new iPad' spring 2012 with iOs 5.1. Fix/explanation? 2012-12-12 16:44:16.763 LNG[397:707] *** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named NSLayoutConstraint' *** First throw call stack: