iOS
Ghost_Song
搜集整理
展开
-
UILabel属性, AttributedString字符串属性 (从网络搜集整理)
- (void)label{ NSString *str = @"Label Text Content, This is a text label things attribute .Label Text Content, This is a text label things attribute"; /* 1.控件 UIView UILabel UITextField转载 2015-11-10 16:01:35 · 323 阅读 · 0 评论 -
iOS开发 添加应用自己的字体
http://blog.csdn.net/justinjing0612/article/details/8093985原创 2015-11-12 10:58:09 · 183 阅读 · 0 评论 -
iOS百度推送证书p12转换pem命令
终端输入命令: openssl pkcs12 -in dis_push.p12 -out dis_push.pem -nodes 参考地址:http://developer.baidu.com/wiki/index.php?title=docs/cplat/push/guideios点击打开链接原创 2015-11-12 10:51:46 · 256 阅读 · 0 评论 -
ios开发 系统提示音的使用
先引入头文件 #import 调用播放方法 AudioServicesPlaySystemSound(id); 提示音列表: Sound ID File name (iPhone) File name (iPod Touch) Category Note 1015 Voicemail.caf Voicemail.caf - Av原创 2015-11-12 11:03:48 · 536 阅读 · 0 评论 -
Xcode6添加pch文件
1,新建PCH File, 保存为:PrefixHeader.pch; 2,在Build Settings里面Prefix Header进行设置: $(SRCROOT)/工程名/PrefixHeader.pch 参考:http://www.cnblogs.com/YouXianMing/p/3989155.html原创 2015-11-12 11:14:23 · 160 阅读 · 0 评论 -
获取iOS设备开机时间
首先包含头文件 #include - (time_t)uptimeFun{ //获取方法,单位是秒 struct timeval boottime; int mib[2] = {CTL_KERN, KERN_BOOTTIME}; size_t size = sizeof(boottime); time_t now; tim原创 2016-03-07 12:46:37 · 1426 阅读 · 0 评论 -
FMDB的简单使用
首先下载FMDB:https://github.com/ccgus/fmdb导入项目,或者pod 'FMDB', '~> 2.6' 要使用的时候,先创建全局属性: @property (nonatomic, strong) FMDatabase *db; 1,获取数据库 NSArray *paths = NSSearchPathForDirectoriesI原创 2016-02-29 15:35:07 · 213 阅读 · 0 评论