摘要:当server向client投送通知时,client有以下几种情况:1. 应用程序处于关闭状态,这时通知被显示;无论是点击应用图标还是点击通知,系统都会启动应用,并调用其代理方法,(application:didFinishLaunchingWithOptions:),通过launchOptions...
阅读全文
摘要:转自:http://www.jb51.net/LINUXjishu/36171.html一、总结一下:1.linux下启动mysql的命令:mysqladmin start/ect/init.d/mysql start (前面为mysql的安装路径)2.linux下重启mysql的命令:mysqla...
阅读全文
摘要:安装环境:Deepin:2014.3桌面版使用LAMP集成包安装,安装命令:sudo apt-get install lamp^ 安装包安装的是apache2+PHP5+MySQL5如需安装phpMyAdmin,使用命令 sudo apt-get install phpmyadmin1、关于apac...
阅读全文
摘要:获取当前时区的时间[NSDate date]获取的是GMT时间,要想获得某个时区的时间,以下代码可以解决这个问题NSDate*date = [NSDatedate];NSTimeZone*zone = [NSTimeZonesystemTimeZone];NSIntegerinterval = [z...
阅读全文
摘要:刚刚发现Xcode6的iPhone Simulator的位置变了,怒查手册Xcode 5的iOS模拟器的应用的目录是在~/Library/Application Support/iPhone Simulator//Applications/{Application_ID}Xcode 6的目录改为~/...
阅读全文
摘要:UILabel 的换行符是 '\n';例如:1 _explainsNotificationLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, self.view.bounds.size.width, 40)];2 _explains...
阅读全文
摘要:1.Application does not run in background(鍵名:UIApplicationExistsOnSuspend)自從iOS4.0之後,當你在應用程式執行的時候按下Home鍵,應用程式並不會中斷目前的執行,而是躲到背景去了。因此希望使用者在按下Home鍵之後就要中斷目...
阅读全文
摘要:我出现这个问题是因为:独立修改了info.plist中的Executable file.致使Executable file 与 真实的工程名称(可执行文件)的名称不一致所以只要把 Executable file 的 名称改到和真实的工程名称(可执行文件)一致即可。
阅读全文
摘要:LaunchImagehttps://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/LaunchImages.html#//apple_ref/doc/uid/TP40006556-...
阅读全文
摘要:http://blog.csdn.net/iunion/article/details/12185077http://stackoverflow.com/questions/13621084/boundingrectwithsize-for-nsattributedstring-returning-...
阅读全文