随笔分类 -  iOS

摘要:#import @interface ProgressView : UIView@property(nonatomic,assign)CGFloat progress;@property(nonatomic,strong)UIColor *layColor;@end#import "Progress... 阅读全文
posted @ 2015-03-30 22:00 曹县三胖暴打大猩猩 阅读(247) 评论(0) 推荐(0)
摘要://创建一个队列 NSOperationQueue *operation=[[NSOperationQueue alloc]init]; //把任务放在NSBlockOperation里面 NSBlockOperation *myOperation=[NSBlockOpe... 阅读全文
posted @ 2015-03-29 21:55 曹县三胖暴打大猩猩 阅读(280) 评论(0) 推荐(0)
摘要:#import @class TTOperation;@protocol TTOperationDelegate -(void)operationComplete:(NSData *)data;@end@interface TTOperation : NSOperation@property(non... 阅读全文
posted @ 2015-03-29 21:51 曹县三胖暴打大猩猩 阅读(205) 评论(0) 推荐(0)
摘要://创建一个队列 NSOperationQueue *operation=[[NSOperationQueue alloc]init]; //把任务放在NSBlockOperation里面 NSBlockOperation *myOperation=[NSBlockOperati... 阅读全文
posted @ 2015-03-29 21:34 曹县三胖暴打大猩猩 阅读(154) 评论(0) 推荐(0)
摘要:#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... 阅读全文
posted @ 2015-03-29 21:12 曹县三胖暴打大猩猩 阅读(329) 评论(0) 推荐(0)
摘要: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 曹县三胖暴打大猩猩 阅读(194) 评论(0) 推荐(0)
摘要:#import "ViewController.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UILabel *remindLabel;@end@implementation ViewController- (v... 阅读全文
posted @ 2015-03-29 17:36 曹县三胖暴打大猩猩 阅读(222) 评论(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 曹县三胖暴打大猩猩 阅读(206) 评论(0) 推荐(0)
摘要:#import "ViewController.h"#define IMAGE_COUNT 6@interface ViewController (){ UIImageView *myImageView; int currentIndex;}@end@implementation Vie... 阅读全文
posted @ 2015-03-12 22:22 曹县三胖暴打大猩猩 阅读(134) 评论(0) 推荐(0)
摘要:UIImage *image=[UIImage imageNamed:@"1"]; UIImageView *imageView=[[UIImageView alloc]init]; imageView.image=image; imageView.frame=CGRectMake... 阅读全文
posted @ 2015-03-12 15:18 曹县三胖暴打大猩猩 阅读(123) 评论(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 曹县三胖暴打大猩猩 阅读(180) 评论(0) 推荐(0)
摘要:#import "ViewController.h"#define WIDTH 50@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]; ... 阅读全文
posted @ 2015-03-12 14:29 曹县三胖暴打大猩猩 阅读(539) 评论(0) 推荐(0)
摘要:#import typedef void(^MyCompleteHandler) (NSString *selectString);@interface TJCustomAlertViewOrTableView : UIView{ MyCompleteHandler completeHand... 阅读全文
posted @ 2015-02-12 14:13 曹县三胖暴打大猩猩 阅读(223) 评论(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 曹县三胖暴打大猩猩 阅读(236) 评论(0) 推荐(0)
摘要:#import "ViewController.h"#import "TestCell.h"@interface ViewController (){ NSMutableArray *dataArray; NSMutableArray *searchArray; UISearchC... 阅读全文
posted @ 2015-02-06 10:06 曹县三胖暴打大猩猩 阅读(607) 评论(0) 推荐(0)
摘要:#import "ViewController.h"@interface ViewController () @property(nonatomic,strong)NSMutableArray *dataArray;@end@implementation ViewController- (void)... 阅读全文
posted @ 2015-01-29 14:58 曹县三胖暴打大猩猩 阅读(401) 评论(0) 推荐(0)
摘要:#import "ViewController.h"#import "ZSDTestCell.h"@interface ViewController (){ NSMutableArray *dataArray; //数组保存显示内容 NSIndexPath *selectI... 阅读全文
posted @ 2015-01-28 11:53 曹县三胖暴打大猩猩 阅读(316) 评论(0) 推荐(0)
摘要:#import "ViewController.h"@interface ViewController (){ NSTimer *countDownTimer; int countDownTime;}@property (weak, nonatomic) IBOutlet UIButto... 阅读全文
posted @ 2015-01-26 13:42 曹县三胖暴打大猩猩 阅读(196) 评论(0) 推荐(0)
摘要://// ZSDTJNoDataView.h// ZSDTJNoDataView//// Created by Mac on 14-12-28.// Copyright (c) 2014年 ZSD. All rights reserved.////当发起网络请求的时候没有数据的时候界面显示指... 阅读全文
posted @ 2014-12-28 22:08 曹县三胖暴打大猩猩 阅读(280) 评论(0) 推荐(0)
摘要:-(NSString *)formatterBankCardNum:(NSString *)string{ NSString *tempStr=string; NSInteger size =(tempStr.length / 4); NSMutableArray *tmpStrArr ... 阅读全文
posted @ 2014-12-17 16:58 曹县三胖暴打大猩猩 阅读(2188) 评论(0) 推荐(0)