import outside xib for storyboard to push
don't forget to Add to targets
.m
//#import "selfxib.h" #import "xib.h" @interface ViewController () - (IBAction)push:(id)sender { xib *newxib = [[xib alloc] initWithNibName:@"xib" bundle:nil]; [self.navigationController pushViewController: newxib animated: YES]; //selfxib *newxib = [[selfxib alloc] initWithNibName:@"selfxib" bundle:nil]; //[self.navigationController pushViewController: newxib animated: YES]; }Tab Bar 連結xib的方法
把view controller的 view delete掉 加入該串接的xib .m 的名稱
沒有留言:
張貼留言
注意:只有此網誌的成員可以留言。