iOS中常用小东西
来源:互联网 发布:mac外服加速器 编辑:程序博客网 时间:2024/05/17 08:45
1.右滑返回
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0) {
self.navigationController.interactivePopGestureRecognizer.enabled = YES;
// 手势有效设置为YES 无效为NO
self.navigationController.interactivePopGestureRecognizer.delegate = self;
// 手势的代理设置为self
}
2.禁用第三方键盘
- (BOOL)application:(UIApplication *)application shouldAllowExtensionPointIdentifier:(NSString *)extensionPointIdentifier
{
if ([extensionPointIdentifier isEqualToString:@"com.apple.keyboard-service"]) {
return NO;
}
return YES;
}
3.改变状态栏颜色
[UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleLightContent;
4.画下划线
NSMutableAttributedString *attributedStr = [[NSMutableAttributedString alloc] initWithString:[NSString stringWithFormat:@"点击注册表示已阅读并同意用户服务使用条例"]];
NSDictionary *dic = @{NSUnderlineStyleAttributeName:[NSNumber numberWithInteger:NSUnderlineStyleSingle]};
[attributedStr addAttributes:dic range:NSMakeRange(12,8)];
label1.attributedText = attributedStr;
label1.textColor = [UIColor whiteColor];
label1.font = [UIFont systemFontOfSize:14];
label1.textAlignment = NSTextAlignmentCenter;
[self.view addSubview:label1];
中间划线,也是相同道理。
- iOS中常用小东西
- CYC- IOS 常用的一些小东西
- android 一些常用的小东西
- 小东西
- 【小东西】
- 小东西
- 小东西
- 小东西
- 实际开发中一些小东西
- java不常用的一些小东西
- 小东西,查看系统中程序开发清单
- CSAPP中一个有意思的小东西
- [iOS] 显示 FPS 值在 iOS 状态栏的小东西
- string类的常用的几个小东西find,substr
- 简单的JSP表格中使用到的小东西
- iOS开发中常用代码
- ios中常用错误总结
- iOS中常用的判断
- Pixhawk-姿态解算-互补滤波
- 由逻辑异或运算符而发现的PHP诡异运算符优先级
- JavaScript面向对象程序设计—创建对象的模式
- ToolBar的使用
- 流媒体服务器的搭建
- iOS中常用小东西
- 解决ie浏览器对easyui加载时候弹出的div一闪而过的问题
- com/android/dx/command/dexer/Main : Unsupported major.minor version 52.0 报错的解决记录
- sed命令使用
- 常用 Git 命令清单
- 第三天
- tessract-ocr文本识别系统网页搭建【PHP】
- js数组去重的几种常用方法总结
- 让你的Android Studio性感起来--Sexy Editor