unrecognized-selector

iOS - Getting a weird error: unrecognized selector sent to instance on a UITableView

爷,独闯天下 提交于 2019-12-12 11:24:35
问题 Introduction In my current application I have a UITableView which holds custom cell objects. The custom UIViewCellObjects are simply subclassed from the standard UITableViewCell class. The custom cells holds information about running background uploads, and updates them with things like percentage done and so on. The custom cell objects listens to NSNotifications from upload processes running in the background, and when they get a relevant notification, they simply update their own view

Objective-c property reinitialization

好久不见. 提交于 2019-12-12 04:07:21
问题 I am creating this question to make my last question to be more specific, here is my last question: IOS:CS193p fall2013 assignment2 task2:add a button to let user to restart the game This is the specific error message I got: 2014-07-26 10:31:55.110 Matchismo[525:60b] -[CardGameViewController redealButton:]: unrecognized selector sent to instance 0x8c27590 2014-07-26 10:31:55.247 Matchismo[525:60b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-

In App Purchase Code Crashing during testing

北战南征 提交于 2019-12-12 03:09:08
问题 I have added InApp Purchasing to my app but when trying to complete a test transaction using a Test User account, the app keeps crashing at the following code saying that Unrecognised Selector sent to Instance. I have read up about this and feel it may be something to do with the fact I am using Auto Renewal Subscription product. The code that seems to be related to the crash is this line: [[NSNotificationCenter defaultCenter] postNotificationName:@"TransCancel" object: self]; I have provided

unrecognized selector sent to instance when using UITableViewCell

无人久伴 提交于 2019-12-12 02:58:22
问题 I am not able to locate the two images and the text box that I placed in my custom cell "GameTableCell.H"... not sure what I'm doing wrong here. GameTableCell.H: // #import <UIKit/UIKit.h> @interface GameTableCell : UITableViewCell @property (strong, nonatomic) IBOutlet UILabel *GameTime; @property (strong, nonatomic) IBOutlet UIImageView* AwayImage; @property (strong, nonatomic) IBOutlet UIImageView* HomeImage; @end GameTableCell.m: // #import "GameTableCell.h" @implementation GameTableCell

imageWithSize in Swift3

和自甴很熟 提交于 2019-12-12 01:52:42
问题 I am converting a project from Xcode 7 iOS 9 Swift 2 to Xcode 8 iOS 10 Swift 3. I let Xcode convert to the latest and it produced: let artWork = delegate.musicPlayer.nowPlayingItem?.value(forProperty: MPMediaItemPropertyArtwork) let imageForButton = (artWork as AnyObject).image(at: CGSize(width: 300, height: 300)) This resulting code crashes the app and pops the error: -[_SwiftValue imageWithSize:]: unrecognized selector sent to instance 0x17008cdf0 *** Terminating app due to uncaught

Crashing after view controller URL request and connection finish correctly

江枫思渺然 提交于 2019-12-12 00:33:58
问题 My app goes to a viewcontroller, makes two automatic server requests, makes the connection, retrieves the data and correctly displays it, and is done. The user clicks a "likes" button and two more server requests are made - successfully. Displays are correct. Should be done. Then it crashes, with the error: [__NSCFNumber isEqualToString:]: unrecognized selector sent to instance I'm using the very handy SimplePost class (by Nicolas Goles). Here are my requests, which are both called in

“terminating with uncaught exception of type NSException” in Swift

≯℡__Kan透↙ 提交于 2019-12-11 21:02:15
问题 When I click on a button the app just crashes and I get this error: 2015-06-12 19:33:16.150 scroll view[79136:11092579] -[scroll_view.ViewController Action:]: unrecognized selector sent to instance 0x7f834148bdd0 2015-06-12 19:33:16.153 scroll view[79136:11092579] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[scroll_view.ViewController Action:]: unrecognized selector sent to instance 0x7f834148bdd0' *** First throw call stack: ( 0 CoreFoundation

NSMutableData error

心不动则不痛 提交于 2019-12-11 04:27:09
问题 Let me start to say that I'm new to iOS/Xcode programming so I don't know even what to ask exactly. I'm trying to add a static library to an app and I'm ending up with a crash. The library package has a .h file and a .a file. I'm asking for some suggestions about how to proceed to figure out the problem. Here some facts : Xcode 7.3 - El captain OS the library is working. I have a demo app that is working with no crash using the same library I'm trying to use I didn't find significative

iOS 9 crash when presenting UIActivityViewController : [UIView _fromWindowOrientation] unrecognized selector sent to instance (UIView)

一个人想着一个人 提交于 2019-12-11 04:01:37
问题 My app is crashing any time I present a UIActivityViewController , only on iOS9. I've isolated the code down to this: (Cleared everything from the AppDelegate minus setting my test view controller as the root and only VC). In the test view controller on button tap: (I made the activityVC an instance property to check if there was a deallocation issue because other debugging efforts suggested that the activityVC might get dealloced during presentation) NSString *string = @"PLS WORK"; self

unrecognized selector sent to instance error when a button is clicked

孤者浪人 提交于 2019-12-10 21:26:43
问题 I'm not entirely sure why I am getting this error. It occurs when I click the button on my FirstViewController: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[FirstViewController 1ButtonPress:]: unrecognized selector sent to instance 0x10954bbd0' My FirstViewController has a button (1ButtonPress) which performs a segue with another ViewController which has a embed NavigationController (so in my storyboard, the segue is from FirstViewController to the