我有以下这些方法,当我点击调用概要方法的按钮时,我收到此错误消息:
"-[UIRoundedRectButton copyWithZone:]: unrecognized selector sent to instance 0xa28ac90
2013-05-07 20:08:18.923 drigo[6278:c07] Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIRoundedRectButton copyWithZone:]: unrecognized selector sent to instance 0xa28ac90'
第一次抛出调用堆栈:
- (IBAction)synopsis:(id)sender {
NSString *urlString = [NSString stringWithFormat:@"http://api.themoviedb.org/3/movie/%@?api_key=34eb86f3b94de2676e8d3007b5ce1993",movieid];
dispatch_async(kBgQueue, ^{
NSURL *url = [NSURL URLWithString:urlString];
NSData* data = [NSData dataWithContentsOfURL:url];
[self performSelectorOnMainThread:@selector(fetcheMovie:)withObject:data waitUntilDone:NO];
});
}
- (void)fetcheMovie:(NSData *)responseData {
NSError* error;
NSDictionary* json = [NSJSONSerialization JSONObjectWithData:responseData options:kNilOptions error:&error];
[self performSegueWithIdentifier:@"web" sender:json];
}
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
NSError* error;
NSDictionary *jsonSendetAsParamInPerformSegue = (NSDictionary*)sender;
WebViewController *targetVC = (WebViewController*)segue.destinationViewController;
targetVC.newsArticles = jsonSendetAsParamInPerformSegue;
}