@interface HMViewController ()@property (nonatomic, strong) NSThread *thread;@end@implementation HMViewController- (void)viewDidLoad{ [super viewDi...
分类:
编程语言 时间:
2015-06-14 10:55:28
阅读次数:
141
#import "DengViewController.h"@interface DengViewController ()@end@implementation DengViewController@synthesize pc=_pc;- (void)viewDidLoad{ [super ...
分类:
其他好文 时间:
2015-06-13 21:36:15
阅读次数:
132
一、前导程序新建一个项目,在主控制器文件中实现以下几行代码,就能轻松的完成图片在视图中的平铺。 1 #import "YYViewController.h" 2 3 @interface YYViewController () 4 5 @end 6 7 @implementation YYVi...
分类:
移动开发 时间:
2015-06-12 20:42:53
阅读次数:
126
@implementation NSString (Emoji)+ (BOOL)stringContainsEmoji:(NSString *)string{ __block BOOL returnValue = NO; [string enumerateSubstringsInRang...
分类:
其他好文 时间:
2015-06-12 16:36:24
阅读次数:
118
■实施上的注意事项 Notes on Implementation ? 现在您了解了基本的方法,当你编写自己的程序时,有一些额外的事情要考虑。下面给出我用C ++和Blitz Basic编写的程序,用其他语言也同样有效。 Now that you und...
分类:
其他好文 时间:
2015-06-11 13:09:03
阅读次数:
421
1. 实现IOS中的Swizzle效果:拦截系统方法 * 具体实现:给Image添加分类UIImage (Extension) * 目的:通过拦截该imageNamed方法,可以一次性给项目中匹配各种屏幕存储的图片@implementation UIImage (Extension)/*** 当.....
分类:
其他好文 时间:
2015-06-10 17:06:33
阅读次数:
121
效果图代码可复制#import "ViewController.h"@interface ViewController ()@property (nonatomic,strong)UIImageView *Headimage;@end@implementation ViewController- (...
分类:
其他好文 时间:
2015-06-10 10:12:10
阅读次数:
146
1利用GCD方式实现单例(ARC)#import "People.h"@implementation Peoplestatic id _instace;+(id)allocWithZone:(struct _NSZone *)zone{ //为防止用alloc创建对象 stat...
分类:
其他好文 时间:
2015-06-10 01:04:09
阅读次数:
147
01-autorelease基本概念Person.m 1 #import "Person.h" 2 3 @implementation Person 4 5 - (void)dealloc 6 { 7 [super dealloc]; 8 NSLog(@"Person 被销毁了"...
分类:
其他好文 时间:
2015-06-09 19:12:17
阅读次数:
156
SSL Programming Tutorial?Table of Contents[?IndexThis section demonstrates the implementation of a simple SSL client and server program using OpenSSL...
分类:
其他好文 时间:
2015-06-09 11:41:50
阅读次数:
113