摘要: 1:dispatch_get_global_queue 后台执行队列2:dispatch_get_main_queue 主队列3:dispatch_queue_create("test", DISPATCH_QUEUE_CONCURRENT) 自定义队列:其中第二个参数为DISPATCH_QUE... 阅读全文
posted @ 2015-03-29 18:24 曹县三胖暴打大猩猩 阅读(177) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UILabel *remindLabel;@end@implementation ViewController- (v... 阅读全文
posted @ 2015-03-29 17:36 曹县三胖暴打大猩猩 阅读(212) 评论(0) 推荐(0) 编辑
摘要: dispatch_queue_t queue=dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); dispatch_group_t group=dispatch_group_create(); ... 阅读全文
posted @ 2015-03-23 20:51 曹县三胖暴打大猩猩 阅读(201) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h"#define IMAGE_COUNT 6@interface ViewController (){ UIImageView *myImageView; int currentIndex;}@end@implementation Vie... 阅读全文
posted @ 2015-03-12 22:22 曹县三胖暴打大猩猩 阅读(125) 评论(0) 推荐(0) 编辑
摘要: UIImage *image=[UIImage imageNamed:@"1"]; UIImageView *imageView=[[UIImageView alloc]init]; imageView.image=image; imageView.frame=CGRectMake... 阅读全文
posted @ 2015-03-12 15:18 曹县三胖暴打大猩猩 阅读(116) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h"#define WIDTH 50#define PHOTO_HEIGHT 150@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad{ ... 阅读全文
posted @ 2015-03-12 14:43 曹县三胖暴打大猩猩 阅读(174) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h"#define WIDTH 50@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]; ... 阅读全文
posted @ 2015-03-12 14:29 曹县三胖暴打大猩猩 阅读(523) 评论(0) 推荐(0) 编辑
摘要: #import typedef void(^MyCompleteHandler) (NSString *selectString);@interface TJCustomAlertViewOrTableView : UIView{ MyCompleteHandler completeHand... 阅读全文
posted @ 2015-02-12 14:13 曹县三胖暴打大猩猩 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 1:如果报引用文件错误的话需要在设置一下:project->Build settings->build active architecture only选项设置为No。Valid Architecture 选项设置为armv7.#import "ViewController.h"#import "Z... 阅读全文
posted @ 2015-02-09 15:09 曹县三胖暴打大猩猩 阅读(228) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h"#import "TestCell.h"@interface ViewController (){ NSMutableArray *dataArray; NSMutableArray *searchArray; UISearchC... 阅读全文
posted @ 2015-02-06 10:06 曹县三胖暴打大猩猩 阅读(595) 评论(0) 推荐(0) 编辑