上一页 1 2 3 4 5 6 7 ··· 15 下一页
摘要: http://www.raywenderlich.com/zh-hans/30818/ios%E5%BA%94%E7%94%A8%E5%B4%A9%E6%BA%83%E6%97%A5%E5%BF%97%E6%8F%AD%E7%A7%980x8badf00d: 读做 “ate bad food”! ... 阅读全文
posted @ 2014-05-25 11:02 李伯波 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 1. 安装djandosudo apt-get install python-django2. 安装mod_wsgisudo apt-get install libapache2-mod-wsgisudo a2enmod wsgi//验证是否成功安装3. apache配置文件httpd.conf:W... 阅读全文
posted @ 2014-05-22 13:14 李伯波 阅读(189) 评论(0) 推荐(0) 编辑
摘要: http://wiki.ubuntu.org.cn/Tomcatsudo apt-get install tomcat7sudo /etc/init.d/tomcat7 startsudo /etc/init.d/tomcat7 stopTomcat 配置文件路径Tomcat home direc... 阅读全文
posted @ 2014-05-22 10:23 李伯波 阅读(341) 评论(0) 推荐(0) 编辑
摘要: print"ID of last record is ", int(cursor.lastrowid) #最后插入行的主键IDprint"ID of inserted record is ", int(conn.insert_id()) #最新插入行的主键ID,conn.insert_id()一定要... 阅读全文
posted @ 2014-05-10 11:39 李伯波 阅读(204) 评论(0) 推荐(0) 编辑
摘要: https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/hdiutil.1.html convert image -format format -o outfile convert image to type format and write the result to outfile. As with create, the correct filename extension will be added only if... 阅读全文
posted @ 2014-03-24 21:32 李伯波 阅读(884) 评论(0) 推荐(0) 编辑
摘要: NSJSONSerialization提供了Json数据封包、Json数据解析,NSJSONSerialization将JSON数据转换为NSDictionary或NSArray解包方法,将NSDictionary、NSArray对象转换为JSON数据(可以通过调用isValidJSONObject来判断NSDictionary、NSArray对象是否可以转换为JSON数 据)封包。这一篇将做简单介绍。Json数据封包 NSDictionary *dic = [NSDictionary dictionaryWithObjectsAndKeys:@"value1",@&quo 阅读全文
posted @ 2014-03-07 14:48 李伯波 阅读(567) 评论(0) 推荐(0) 编辑
摘要: 参考:http://blog.csdn.net/yang8456211/article/details/12031667 1.原理。查看NSLocalizedString(@"abc",nil);的定义。?12#define NSLocalizedString(key, comment) \[[NSBundle mainBundle] localizedStringForKey:(key) value:@"" table:nil]然后思考,为什么这个定义会定位到当前系统默认的语言对应的strings文件呢?如果这点想通了,那问题就迎刃而解了不是?2.具体 阅读全文
posted @ 2013-12-03 16:33 李伯波 阅读(403) 评论(0) 推荐(0) 编辑
摘要: NSString *executableFile = [[[NSBundle mainBundle] infoDictionary] objectForKey:(NSString *)kCFBundleExecutableKey]; NSString *version = [[[NSBundle mainBundle] infoDictionary] objectForKey:(NSString *)kCFBundleVersionKey];还有其它很多信息可由infoDictionary获得,以下是官方文档里的说明:information Property List KeysStandard 阅读全文
posted @ 2013-11-04 10:44 李伯波 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 1.侧边栏https://github.com/rnystrom/RNFrostedSidebar 拖拽RNFrostedSidebar.m和它的.h文件导工程中。同时需要安装QuartzCore以及Accelerate两个框架。 用法 最简单的方法是创建一系列图片,然后初始化RNFrostedSidebar对象,然后调用-show方法。 NSArray *images = @[ [UIImage imageNamed:@"gear"], [UIImage imageNamed:@"globe"], [UIImage imageNamed:@" 阅读全文
posted @ 2013-10-26 10:06 李伯波 阅读(322) 评论(0) 推荐(0) 编辑
摘要: 1. 关于录音和Audio Session Categories 2. 分贝数据的处理 3. iOS 7中默认配置的变化 返回目录 1. 关于录音和Audio Session Categories 如 果AVAudioRecorder的averagePowerForChannel和peakPowerForChannel方法总是返回-160的话, 那么很有可能是当前的Audio Session Categories不允许进行音频输入(也就是麦克风输入)。 如:AVAudioSessionCategorySoloAmbient/kAudioSessionCategory_SoloA... 阅读全文
posted @ 2013-10-18 20:07 李伯波 阅读(1028) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 15 下一页