1.滑動UIScrollView時不影響定時器NSTimer
[[NSRunLoop mainRunLoop] addTimer:_timer forMode:NSRunLoopCommonModes];
2.導航控制器透明效果
self.navigationController.navigationBar.translucent = YES;
UIColor * color = [UIColor clearColor];
CGRect rect = self.navigationController.navigationBar.frame;
UIGraphicsBeginImageContext(rect.size);
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSetFillColorWithColor(context, [color CGColor]);
CGContextFillRect(context, rect);
UIImage * image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
[self.navigationController.navigationBar setBackgroundImage:image forBarMetrics:UIBarMetricsDefault];
self.navigationController.navigationBar.clipsToBounds = YES;
3.UIPickerView的高度設置
UIPickerView的高度只有三個:162、180、116
4.更新pod的本地庫
pod repo update
5.檢查podspec文件是否正確
pod spec lint
6.UIScroll 中上下左右拉伸彈簧效果設置
@property(nonatomic)BOOL ?alwaysBounceVertical
@property ?(nonatomic) ?BOOL ? alwaysBounceHorizontal
7.修改UITextField中的輸入視圖
修改 ?inputAccessoryView 變量