- 博客(9)
- 收藏
- 关注
原创 获取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
1517
原创 Mac OS X下显示/隐藏文件
在类Unix系统和Linux系统中的“隐藏”文件都是以点"."为文件名开头的。在Mac OS中也是如此。此种文件在默认的Finder和各种应用程序中是不显示的。这样做的一个好处是,很多时候那些“隐藏”文件里可能包含了某个应用程序的重要配置,重要数据等信息,如果“不明真相”的用户拿去不小心修改了可能会影响程序的运行。当然,这个也是可以通过系统的设置来决定那些“隐藏”文件是否显示的
2016-02-29 15:45:44
315
原创 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
241
原创 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
178
原创 ios开发 系统提示音的使用
先引入头文件#import 调用播放方法AudioServicesPlaySystemSound(id);提示音列表:Sound IDFile name (iPhone)File name (iPod Touch)CategoryNote1015Voicemail.cafVoicemail.caf-Av
2015-11-12 11:03:48
583
原创 iOS开发 添加应用自己的字体
http://blog.youkuaiyun.com/justinjing0612/article/details/8093985
2015-11-12 10:58:09
199
原创 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
275
转载 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
349
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人