2015年6月15日

关于iOS Push Notification响应的问题

摘要: 当server向client投送通知时,client有以下几种情况:1. 应用程序处于关闭状态,这时通知被显示;无论是点击应用图标还是点击通知,系统都会启动应用,并调用其代理方法,(application:didFinishLaunchingWithOptions:),通过launchOptions... 阅读全文

posted @ 2015-06-15 14:55 码农之上~ 阅读(230) 评论(0) 推荐(0) 编辑

2015年5月10日

linux下mysql常用命令

摘要: 转自:http://www.jb51.net/LINUXjishu/36171.html一、总结一下:1.linux下启动mysql的命令:mysqladmin start/ect/init.d/mysql start (前面为mysql的安装路径)2.linux下重启mysql的命令:mysqla... 阅读全文

posted @ 2015-05-10 11:49 码农之上~ 阅读(181) 评论(0) 推荐(0) 编辑

LINUX下Apache PHP MySQL的配置与使用

摘要: 安装环境:Deepin:2014.3桌面版使用LAMP集成包安装,安装命令:sudo apt-get install lamp^ 安装包安装的是apache2+PHP5+MySQL5如需安装phpMyAdmin,使用命令 sudo apt-get install phpmyadmin1、关于apac... 阅读全文

posted @ 2015-05-10 11:48 码农之上~ 阅读(417) 评论(0) 推荐(0) 编辑

2015年5月7日

NSDate相关

摘要: 获取当前时区的时间[NSDate date]获取的是GMT时间,要想获得某个时区的时间,以下代码可以解决这个问题NSDate*date = [NSDatedate];NSTimeZone*zone = [NSTimeZonesystemTimeZone];NSIntegerinterval = [z... 阅读全文

posted @ 2015-05-07 10:49 码农之上~ 阅读(98) 评论(0) 推荐(0) 编辑

2015年5月3日

Xcode6沙盒目录

摘要: 刚刚发现Xcode6的iPhone Simulator的位置变了,怒查手册Xcode 5的iOS模拟器的应用的目录是在~/Library/Application Support/iPhone Simulator//Applications/{Application_ID}Xcode 6的目录改为~/... 阅读全文

posted @ 2015-05-03 21:27 码农之上~ 阅读(106) 评论(0) 推荐(0) 编辑

UILabel和TextView手动换行

摘要: UILabel 的换行符是 '\n';例如:1 _explainsNotificationLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, self.view.bounds.size.width, 40)];2 _explains... 阅读全文

posted @ 2015-05-03 12:23 码农之上~ 阅读(623) 评论(0) 推荐(0) 编辑

2015年5月2日

IOS开发info.plist中键值的含义

摘要: 1.Application does not run in background(鍵名:UIApplicationExistsOnSuspend)自從iOS4.0之後,當你在應用程式執行的時候按下Home鍵,應用程式並不會中斷目前的執行,而是躲到背景去了。因此希望使用者在按下Home鍵之後就要中斷目... 阅读全文

posted @ 2015-05-02 22:26 码农之上~ 阅读(617) 评论(0) 推荐(0) 编辑

2015年5月1日

IOS开发中couldn’t be opened because you don’t have permission to view it的解决

摘要: 我出现这个问题是因为:独立修改了info.plist中的Executable file.致使Executable file 与 真实的工程名称(可执行文件)的名称不一致所以只要把 Executable file 的 名称改到和真实的工程名称(可执行文件)一致即可。 阅读全文

posted @ 2015-05-01 16:26 码农之上~ 阅读(2022) 评论(0) 推荐(0) 编辑

IOS中launchImage大小

摘要: LaunchImagehttps://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/LaunchImages.html#//apple_ref/doc/uid/TP40006556-... 阅读全文

posted @ 2015-05-01 14:06 码农之上~ 阅读(2082) 评论(0) 推荐(0) 编辑

2015年4月21日

UILabel/UITextView根据文本内容调整高度

摘要: http://blog.csdn.net/iunion/article/details/12185077http://stackoverflow.com/questions/13621084/boundingrectwithsize-for-nsattributedstring-returning-... 阅读全文

posted @ 2015-04-21 10:45 码农之上~ 阅读(198) 评论(0) 推荐(0) 编辑

导航