
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 · 382 阅读 · 0 评论 -
iOS开发 添加应用自己的字体
http://blog.youkuaiyun.com/justinjing0612/article/details/8093985原创 2015-11-12 10:58:09 · 213 阅读 · 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 · 284 阅读 · 0 评论 -
ios开发 系统提示音的使用
先引入头文件#import 调用播放方法AudioServicesPlaySystemSound(id);提示音列表:Sound IDFile name (iPhone)File name (iPod Touch)CategoryNote1015Voicemail.cafVoicemail.caf-Av原创 2015-11-12 11:03:48 · 618 阅读 · 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 · 187 阅读 · 0 评论 -
获取iOS设备开机时间
首先包含头文件#include - (time_t)uptimeFun{//获取方法,单位是秒 structtimeval boottime; int mib[2] = {CTL_KERN,KERN_BOOTTIME}; size_t size =sizeof(boottime); time_t now; tim原创 2016-03-07 12:46:37 · 1579 阅读 · 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 · 263 阅读 · 0 评论