摘要: #import "ViewController.h" #define ScreenWidth [[UIScreen mainScreen] bounds].size.width #define Screenheight [[UIScreen mainScreen] bounds].size.heig 阅读全文
posted @ 2016-03-17 16:48 塔里木小虫 阅读(174) 评论(0) 推荐(0)
摘要: //swift里面字符串不需要添加@符号varstr="Hello,playground"//常量//用let声明一个常量,常量不可以修改letnumber:Int32=15//number=14//变量//用var声明变量,可以修改变量varnumber2:Int32=22;number2=21/... 阅读全文
posted @ 2015-11-18 12:19 塔里木小虫 阅读(176) 评论(0) 推荐(0)
摘要: 1 波纹效果- (void)makeRipple{ CATransition *animation = [CATransition animation]; animation.duration = 1.0; animation.timingFunction = UIViewAnimationC... 阅读全文
posted @ 2015-11-14 16:16 塔里木小虫 阅读(124) 评论(0) 推荐(0)
摘要: APNS(Apple Push Notification Services)苹果专门的推送服务器 接收我们自己应用服务器需要被推送的消息 然后推送到我们的手机 手机通知我们的应用程序注册的大概流程:1 设备需要向APNS服务器注册2 注册成功后返回device_token值3 将这个token值发送... 阅读全文
posted @ 2015-11-13 21:56 塔里木小虫 阅读(272) 评论(0) 推荐(0)
摘要: 1播放音效播放单个1:创建soundID@property (nonatomic, assign) SystemSoundID soundID;- (SystemSoundID)soundID { if (!_soundID) { NSURL *url = [NSURL URLWithString... 阅读全文
posted @ 2015-11-12 21:33 塔里木小虫 阅读(213) 评论(0) 推荐(0)