![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
IOS
文章平均质量分 87
甄晓彬
这个作者很懒,什么都没留下…
展开
-
IOS:UITextField输入中文时限制长度
1、初始化时注册通知notification:[[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(textFiledEditChanged:) name:@"UITextFieldTextDidChangeNot原创 2015-07-27 15:00:14 · 475 阅读 · 0 评论 -
iOS语言本地化以及自动化
一、配置需要国际化的语言 选中project->Info->Localizations,然后点击”+”,添加需要国际化/本地化的语言,如下图(默认需要勾选Use Base Internationalization)二、应用名称本地化/国际化 1、选中Info.plist,按下键盘上的command + N,选择Strings File(iOS->Resource->Strings File原创 2017-09-30 15:10:30 · 665 阅读 · 0 评论 -
iOS自动打包并发布IPA脚本
iOS自动打包并发布IPA脚本本文使用脚本打 enterprise 包,生成的 ipa 包上传至蒲公英进行测试分发了解打包命令 xcodebuild 负责编译,通过工程文件,生成 app 文件。 xcrun 通过app文件,来生成 ipa 文件。(包含了签名的过程) man xcodebuild 查看xcodebuild文档将打包过程脚本化1、下载脚本github按照文档稍微修改一原创 2017-09-07 15:11:51 · 930 阅读 · 0 评论 -
MAC下使用GitHub以及xcode连接同步代码
1、准备工作注册github账号:https://github.com提示: - 文本框后面如果不是绿色对号 - 用户名已经存在(换一个喽) - 邮箱已经注册或不存在 注册完毕即以新注册的账号自动登录,在首页右上方的导航条,可以看到当前 登录用户的名称,点击导航条中的“Account Settings”,对账号进行进一步设置。2.安装github客户端:https://mac.gi原创 2015-07-01 21:06:45 · 1032 阅读 · 0 评论 -
sqlite3增删改查,导入导出
一、创建表创建一个 Student 表,其中包含 Id、Name、Age 等字段. sqlite> sqlite> CREATE TABLE Students(Id integer,Name text,age integer); sqlite> .tables Students sqlite> .schema Students CREATE TABLE Students(Id integ原创 2016-10-20 14:21:40 · 415 阅读 · 0 评论 -
xcode 8 注释快捷键失效,解决方案
这个是因为苹果解决xcode ghost。把插件屏蔽了。解决方案命令运行: sudo /usr/libexec/xpccachectl 必须重启电脑后生效原创 2016-09-28 14:00:41 · 454 阅读 · 0 评论 -
IOS比较常用的第三方及实例
一:第三方插件1:基于响应式编程思想的oc地址:https://github.com/ReactiveCocoa/ReactiveCocoa2:hud提示框地址:https://github.com/jdg/MBProgressHUD地址:https://github.com/SVProgressHUD/SVProgressHUD地址:https://github.com/scalessec/Toa转载 2016-10-10 14:29:55 · 1758 阅读 · 0 评论 -
ios 设置视图透明,子控件不透明
1、使用背景图片。 2、使用colorWithAlphaComponent:方法UIColor *color = [UIColor blackColor];bgView.backgroundColor = [color colorWithAlphaComponent:0.5];原创 2016-03-11 11:17:53 · 430 阅读 · 0 评论 -
格式化小数,四舍五入
//格式化小数 四舍五入类型- (NSString *)decimalWithFormat:(NSString *)format double:(double)value{ NSNumberFormatter *numberFormatter = [[NSNumberFormatter alloc] init]; [numberFormatter setPositiveFormat原创 2016-03-10 10:20:13 · 429 阅读 · 0 评论 -
判断字符串字节数(中英文)
// 判断字符串长度(包含中英文)- (int)convertToInt:(NSString *)string{ int strlength = 0; char* p = (char*)[string cStringUsingEncoding:NSUnicodeStringEncoding]; for (int i=0 ; i<[string lengthOfBytesU原创 2016-03-10 10:13:27 · 702 阅读 · 0 评论 -
Xcode 快捷键
有关快捷键的博客基本被写烂了,打开度娘搜索一堆一堆的,那我为什么还要写一篇关于快捷键的呢,我想我是蛋疼了^_^ ,说一下我常用的快捷键。1、运行:Command+R2、停止运行:Command+。3、构建工程:Command+B4、清理工程:Command+Shift+K5、跳转指定行:Command+L 6、断点执行/取消:Command+Y 7、显示/隐藏导航器面板:Command+0 8原创 2015-07-27 18:05:18 · 464 阅读 · 0 评论 -
class-dump安装及基本使用
Mac系统10.11添加了新特性Rootless,限制了root用户的权限(/usr/bin,不允许更改)。那就改变环境变量来使用class-dump。class-dump下载地址http://stevenygard.com/projects/class-dump/1、首先在当前用户下新建一个bin目录,在终端里mkdir ~/bin2、 打开下载好的class-dump的dmg,把里面的文件全部复原创 2017-12-26 09:52:40 · 997 阅读 · 0 评论