0
我有一類名爲searchresultviewcontroller
另一個customcell
類是該類searchresultcell
我有一個UIButton
當時該按鈕,點擊後轉到其他類時。一個atteched customcell xib
圖像0無法從自定義單元格導航到另一個視圖在iOS 6中
//爲.h文件中
@class SearchResultViewController;
@interface searchresultcellCell : UITableViewCell{
IBOutlet UIButton *btnReadMore;
SearchResultViewController *parent;
}
@property(nonatomic,retain)SearchResultViewController *parent;
@property(nonatomic,retain)IBOutlet UIButton *btnReadMore;
-(IBAction)btnMore:(id)sender;
// .m file
-(void)btnMore:(id)sender{
NSLog(@"Sucess");
AboutViewController *objAbout = [[AboutViewController alloc]initWithNibName:@"AboutViewController" bundle:Nil ];
[parent.navigationController pushViewController:objAbout animated:YES];
}
哪裏是你的代碼的方法是什麼? –
分享一些代碼。 – Suryakant
@ BhavikKama,Suryakant Sharma我編輯了我的問題 – Prashant09