摘要:经常有同学问我们,iOS上推送究竟怎么做啊,为什么我的设备总收不到推送呢,这里跟大家集中讨论一下iOS上推送的实现细节。APNS的推送机制与Android上我们自己实现的推送服务不一样,Apple对设备的控制非常严格,消息推送的流程必须要经过APNs:这里 Provider 是指某个应用的Devel... 阅读全文
ios 自定义tabbar
2014-09-20 13:16 by 苑哲雨, 179 阅读, 0 推荐, 收藏,
摘要:.h文件:#import @interface YLYTabBar : UIView@end.m文件#import "YLYTabBar.h"@implementation YLYTabBar- (id)initWithFrame:(CGRect)frame{ self = [super in... 阅读全文
iOS点击任何出回收键盘
2014-09-20 13:11 by 苑哲雨, 410 阅读, 0 推荐, 收藏,
摘要:我这个是在navigationBar上一个搜索框:搜索框不在View上,不能用self.view只能用window上/** * 控制器的View被点击了,就会调用 * * @param touches 对象 * @param event 事件(封装了触摸的所有事件) */- (void)t... 阅读全文
iOSUIButton类的扩展,创建一个UIBarButtonItem的button
2014-09-20 13:08 by 苑哲雨, 1585 阅读, 0 推荐, 收藏,
摘要:.h文件中:#import @interface UIBarButtonItem (YLY)/** * 快速创建一个item对象(包装一个button) * * @param image 按钮图片 * @param hilight 高亮图 * @param target 按钮的监听器 ... 阅读全文
常用宏定义
2014-09-20 13:05 by 苑哲雨, 199 阅读, 0 推荐, 收藏,
摘要:iOS6和iOS7的适配:#define iOS7 ([[UIDevice currentDevice].systemVersion doubleValue] >= 7.0)#endif根据RGB设置一个全局背景色://2.获得RGB#define YLYColor(r,g,b) [UIColor ... 阅读全文
浙公网安备 33010602011771号