十一岁的加重songxing10000…… ------ 回到博主首页
摘要: Socket是应⽤用层与TCP/IP协议族通信的中间软件抽象层,它是⼀一组接⼝口。在设计模式中,Socket其实就是 ⼀一个⻔门⾯面模式,它把复杂的TCP/IP协议族隐藏在Socket接⼝口后⾯面,对⽤用户来说,⼀一组简单的接⼝口就是全部,让 Socket去组织数据,以符合指定的协议。⼀一个⽣生活中... 阅读全文
posted @ 2015-04-27 12:27 songxing10000 阅读(395) 评论(0) 推荐(0) 编辑
摘要: SDWebImage提供了如下三个category来进行缓存。MKAnnotationView(WebCache)UIButton(WebCache)UIImageView(WebCache)以最为常用的UIImageView为例:UIImageView+WebCache:setImageWithU... 阅读全文
posted @ 2015-04-27 12:26 songxing10000 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 1 第一步:创建本地推送 2 // 创建一个本地推送 3 UILocalNotification *notification = [[[UILocalNotification alloc] init] autorelease]; 4 //设置10秒之后 5 NSDate *pushDate = [... 阅读全文
posted @ 2015-04-27 12:24 songxing10000 阅读(264) 评论(0) 推荐(0) 编辑
摘要: UILabel *lLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 19, 105, 1)]; lLabel.backgroundColor = getColorWithRGB(40, 125, 244, 1.0); [prot... 阅读全文
posted @ 2015-04-26 15:08 songxing10000 阅读(304) 评论(0) 推荐(0) 编辑
摘要: - (void)viewDidLoad{ [super viewDidLoad]; [self addTapForView];}- (void)addTapForView { UITapGestureRecognizer *tapGestureRecognizer =[[... 阅读全文
posted @ 2015-04-26 10:09 songxing10000 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 1.新建一个继承自UITableViewCell的子类2.在initWithStyle:方法中进行子控件的初始化1> 将有可能显示的所有子控件都添加到contentView中2> 顺便设置子控件的一些属性(一次性的设置:字体、文字颜色、背景3.提供2个模型1> 一个是数据模型(文字数据 + 图片数据... 阅读全文
posted @ 2015-04-23 00:32 songxing10000 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 1 UIScrollView无限滚动 2 3 #import "ViewController.h" 4 5 #define kCount 8 6 7 @interface ViewController () 8 { 9 UIImageView *_reusableView; /... 阅读全文
posted @ 2015-04-19 22:54 songxing10000 阅读(189) 评论(0) 推荐(0) 编辑
摘要: Xcode插件~/Library/Application Support/Developer/Shared/Xcode/Plug-insXcode代码块~/Library/Developer/Xcode/UserData/CodeSnippetsXcode主题位置~/Library/Develope... 阅读全文
posted @ 2015-04-19 22:38 songxing10000 阅读(131) 评论(0) 推荐(0) 编辑
摘要: NSStringEncoding gbkEncoding =CFStringConvertEncodingToNSStringEncoding(kCFStringEncodingGB_18030_2000); NSString*pageSource = [[NSString alloc] ini... 阅读全文
posted @ 2015-04-19 22:36 songxing10000 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-04-11 15:37 songxing10000 阅读(122) 评论(0) 推荐(0) 编辑