
xib
小手一背爱谁谁
这个作者很懒,什么都没留下…
展开
-
iOS XibVIew加载的那些坑
1.view实体类加载XibView 重写 initWithFrame 方法,- (instancetype)initWithFrame:(CGRect)frame{ self = [super initWithFrame:frame]; if (self) { UIView *view = [[[NSBundle mainBundle] loadNibNamed:self.description owner:self options:nil] lastObject]原创 2021-11-16 14:35:36 · 2147 阅读 · 0 评论 -
iOS xib viewcontroller页面跳转
UIViewController *vc = [[UIViewControlleralloc] initWithNibName:@"NIBNAME"bundle:nil];[self.navigationControllerpushViewController:vc animated:YES];原创 2016-08-18 13:37:58 · 4238 阅读 · 0 评论 -
iOS 加载NIBView
FirstView *views = [[[NSBundlemainBundle] loadNibNamed:@"FirstView"owner:selfoptions:nil]lastObject]; [views setFrame:self.view.bounds]; [self.viewaddSubview:views];原创 2016-10-09 16:06:59 · 3499 阅读 · 0 评论 -
iOS xib跳转到storyboard的ViewController页面
UIStoryboard *story = [UIStoryboard storyboardWithName:@"Main"bundle:nil]; BindingPhoneViewController *storVC = [story instantiateViewControllerWithIdentifier:@"bindingVC"];[self.navigationC原创 2016-09-23 12:01:44 · 1482 阅读 · 0 评论 -
iOS 加载xib cell
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ static NSString *cellIndentifier =@"AccountDetailTableViewCell";//这里的cellID就是cell的x原创 2016-10-26 14:06:24 · 788 阅读 · 0 评论 -
iOS CollectionView加载xib CollectionViewCell
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath { staticNSString *fcell = @"cell"; //在这里注册自定义的X原创 2016-10-27 17:43:21 · 4258 阅读 · 0 评论 -
iOS 加载NIB / xib 的 VIew
// .h#import #import #define NIB(x) (x *)[ViewUtil nib:#x]#define NIB_OWN(x, y) (x *)[ViewUtil nib:#x owner:y]#define REG_NIB(x, y) [ViewUtil table:x registerNib:#y]#def原创 2017-01-05 16:08:01 · 1405 阅读 · 0 评论