iOS-解决tabBar跳动问题
[[UITabBar appearance] setTranslucent:NO];
光标颜色修改
search.tintColor = [UIColor redColor];
textFiled.tinColor = [UIColor orangeColor];
1,适配齐刘海,填充顶部空白
if (@available(iOS 11.0, *)) {
mainScrollow.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
NSLog(@"11.0f");
} else {
// self.automaticallyAdjustsScrollViewInsets = NO;
NSLog(@"10f");
}
2,判断以某串字符开头或结尾
[resourcesFile.name hasPrefix:@"AAA"];//判断是否是“AAA”开头
[resourcesFile.name hasSuffix:@".prss"];//判断是否是“.prss”结尾
3,判断数子是否为nan或INF
if (isnan(a)) {
NSLog(@"NaN");
}
if (isinf(b)) {
NSLog(@"+inf");
}
4,模拟器路径
/应用程序/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
5,数字带点的键盘
UIKeyboardTypeDecimalPad
网友评论