随笔分类 - iOS
摘要:#import @interface ProgressView : UIView@property(nonatomic,assign)CGFloat progress;@property(nonatomic,strong)UIColor *layColor;@end#import "Progress...
阅读全文
摘要://创建一个队列 NSOperationQueue *operation=[[NSOperationQueue alloc]init]; //把任务放在NSBlockOperation里面 NSBlockOperation *myOperation=[NSBlockOpe...
阅读全文
摘要:#import @class TTOperation;@protocol TTOperationDelegate -(void)operationComplete:(NSData *)data;@end@interface TTOperation : NSOperation@property(non...
阅读全文
摘要://创建一个队列 NSOperationQueue *operation=[[NSOperationQueue alloc]init]; //把任务放在NSBlockOperation里面 NSBlockOperation *myOperation=[NSBlockOperati...
阅读全文
摘要:#define KURL1 @"http://img0.imgtn.bdimg.com/it/u=79920747,2237302485&fm=90&gp=0.jpg"#define KURL2 @"http://img5.imgtn.bdimg.com/it/u=2983485216,136114...
阅读全文
摘要:1:dispatch_get_global_queue 后台执行队列2:dispatch_get_main_queue 主队列3:dispatch_queue_create("test", DISPATCH_QUEUE_CONCURRENT) 自定义队列:其中第二个参数为DISPATCH_QUE...
阅读全文
摘要:#import "ViewController.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UILabel *remindLabel;@end@implementation ViewController- (v...
阅读全文
摘要:dispatch_queue_t queue=dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); dispatch_group_t group=dispatch_group_create(); ...
阅读全文
摘要:#import "ViewController.h"#define IMAGE_COUNT 6@interface ViewController (){ UIImageView *myImageView; int currentIndex;}@end@implementation Vie...
阅读全文
摘要:UIImage *image=[UIImage imageNamed:@"1"]; UIImageView *imageView=[[UIImageView alloc]init]; imageView.image=image; imageView.frame=CGRectMake...
阅读全文
摘要:#import "ViewController.h"#define WIDTH 50#define PHOTO_HEIGHT 150@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad{ ...
阅读全文
摘要:#import "ViewController.h"#define WIDTH 50@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]; ...
阅读全文
摘要:#import typedef void(^MyCompleteHandler) (NSString *selectString);@interface TJCustomAlertViewOrTableView : UIView{ MyCompleteHandler completeHand...
阅读全文
摘要:1:如果报引用文件错误的话需要在设置一下:project->Build settings->build active architecture only选项设置为No。Valid Architecture 选项设置为armv7.#import "ViewController.h"#import "Z...
阅读全文
摘要:#import "ViewController.h"#import "TestCell.h"@interface ViewController (){ NSMutableArray *dataArray; NSMutableArray *searchArray; UISearchC...
阅读全文
摘要:#import "ViewController.h"@interface ViewController () @property(nonatomic,strong)NSMutableArray *dataArray;@end@implementation ViewController- (void)...
阅读全文
摘要:#import "ViewController.h"#import "ZSDTestCell.h"@interface ViewController (){ NSMutableArray *dataArray; //数组保存显示内容 NSIndexPath *selectI...
阅读全文
摘要:#import "ViewController.h"@interface ViewController (){ NSTimer *countDownTimer; int countDownTime;}@property (weak, nonatomic) IBOutlet UIButto...
阅读全文
摘要://// ZSDTJNoDataView.h// ZSDTJNoDataView//// Created by Mac on 14-12-28.// Copyright (c) 2014年 ZSD. All rights reserved.////当发起网络请求的时候没有数据的时候界面显示指...
阅读全文
摘要:-(NSString *)formatterBankCardNum:(NSString *)string{ NSString *tempStr=string; NSInteger size =(tempStr.length / 4); NSMutableArray *tmpStrArr ...
阅读全文

浙公网安备 33010602011771号