English 中文(简体)
飞行正与NSInvalid Argument Exception发生碰撞
原标题:App is crashing with NSInvalidArgumentException

I m try to open en new screen after the nstimer and i m using:

MultiplayerController* controller = [[MultiplayerController alloc] initWithNibName:@"MultiplayerController" bundle:nil];
        [[self navigationController] pushViewController:controller animated:YES];
        [controller.playeronecount setText:playeronecount.text];

但是,这段话给了我一个SIGABRT。

a. 在档案中;

IBOutlet UILabel *playeronecount;  

@property (nonatomic, retain) UILabel *playeronecount;

2012-01-12 21:56:16.016 [9621:707] -[MultiplayerController playeronecount]: unrecognized selector sent to instance 0x39824a0 2012-01-12 21:56:16.020 [9621:707] * Terminating app due to uncaught exception NSInvalidArgumentException , reason: -[MultiplayerController playeronecount]: unrecognized selector sent to instance 0x39824a0 * First throw call stack: (0x33ff48bf 0x357101e5 0x33ff7acb 0x33ff6945 0x33f51680 0x5f85 0x31ac361d 0x33fc8a63 0x33fc86c9 0x33fc729f 0x33f4a4dd 0x33f4a3a5 0x35b8afcd 0x3508f743 0x275f 0x2704) terminate called throwing an exception(gdb)

最佳回答

您需要@synthesize>>>。 如果试图在没有综合方法的情况下获得财产,将产生“未经承认的被派作案选择者”的例外。

问题回答

暂无回答




相关问题
How do you create UIBarButtonItems with a radio interface?

I have a UIToolbar that needs three buttons in a radio style, meaning that of the three, only one button can be pushed at a time. The documentation makes reference to the possibility of setting up ...

iPhone settings bundle

I want to allow the user to enter a valid date using the iPhone’s settings application. I have experimented with many of the PreferenceSpecifiers data node types including date. I have two issues: ...

Circular #import/@class problem in ObjectiveC

I m going to use an example to properly illustrate my confusion. I can t quite wrap my head around this. In Cocoa touch, we have UIViewController and its subclass, UINavigationController. Now, UIVC ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Cocoa-Touch: issue looping MPMoviePlayerController

I have an app which has to load some data at startup, so I want to display a splash-screen animation. I m using the MPMoviePlayerController to play a m4v file. The movie has it s background set to [...

Iphone sequential animation with setAnimationDelay

I m trying to chain animation events. The application I m coding for work has a multiple choice quiz. First you pick your multiple choice answer. The quiz view fades away. Then a label ("correct" or "...

热门标签