摘要:
1.先获取tableHeaderView2.设置它的frame3.将该view设置回tableviewUIView *view=tableView. tableHeaderView;view.frame=newFrame;tableView. tableHeaderView =view; ref:h... 阅读全文
摘要:
在我们利用 UITableView 展示我们的内容的时候,我需要在顶部放一个不同于一般的cell的 界面,这个界面比较独特。1。所以我就把它作为一个section的 headerView。也就是在函数:- (UIView*)tableView:(UITableView*)tableView view... 阅读全文
摘要:
---------------------字符串分割实例---------------------NSString * ptr = @"I am a man";//将字符串整体作为分割条件 返回值为NSArray不可变数组NSArray * array = [ptr componentsSepara... 阅读全文
摘要:
btn.frame = CGRectMake(x, y, width, height);[btn setTitle: @"search" forState: UIControlStateNormal];//设置按钮上的自体的大小//[btn setFont: [UIFont systemFontSi... 阅读全文
摘要:
As alocal variable:returnType(^blockName)(parameterTypes) = ^returnType(parameters) {...};As aproperty:@property (nonatomic, copy)returnType(^blockNam... 阅读全文
摘要:
使用对应的转换NSStringFromCGPointNSStringFromCGSizeNSStringFromCGRectNSStringFromCGAffineTransformNSStringFromUIEdgeInsets比如NSLog(@"rect1: %@",NSStringFromCG... 阅读全文
摘要:
1 UIButton *signBtn = [UIButton buttonWithType:UIButtonTypeCustom]; 2 signBtn.frame = CGRectMake(0, 0, 80, 40); 3 [signBtn.layer setMasksToBounds:YES... 阅读全文
摘要:
ERROR ITMS-9000: "Your binary is not optimized for iPhone 5 - New iPhone apps and app updates submitted must support the 4-inch display on iPhone 5 an... 阅读全文