IOS?????ж????????
???????????? ???????[ 2015/3/24 14:19:41 ] ????????ios ????? ????
	????????????????????????
	????1.????????????
	????NSThread * thread=[[NSThread alloc] initWithTarget:self selector:@selector(_update) object:nil];
	????2.?????????????
	????[NSThread detachNewThreadSelector:@selector(_update) toTarget:self withObject:nil];
	????3.?????????????
	????[self performSelectorInBackground:@selector(_update) withObject:nil];
	????4.?????????????
	????NSOperationQueue *queue=[[NSOperationQueue alloc] init];
	????[queue addOperationWithBlock:^{
	????for(int i=0;i<50;i++){
	????printf("?????
");
	????}
	????}];
	????5.?????????????
	//?????????????
	NSOperationQueue * queue=[[NSOperationQueue alloc] init];
	//???ò??????
	[queue setMaxConcurrentOperationCount:2];
	//??????????????????????
	NSInvocationOperation * thread1=[[NSInvocationOperation alloc] initWithTarget:self selector:@selector(_update1) object:nil];
	NSInvocationOperation *thread2=[[NSInvocationOperation alloc] initWithTarget:self selector:@selector(_update2) object:nil];
	[thread1 setQueuePriority:NSOperationQueuePriorityVeryLow];
	[thread2 setQueuePriority:NSOperationQueuePriorityVeryHigh];
	[queue addOperation:thread1];
	[queue addOperation:thread2];
	?????????????????????????????
	????1.???????
	???????????????????????????????????????????????????????????????????????????????????UI??
	????2.????·
	????????UIImageView ?????????????????????
	???????????
	#import "UIImageView+thread.h"
	@implementation UIImageView(load)
	- (void) setImageWithUrl:(NSString *)url{
	[self performSelectorInBackground:@selector(_loadImage:) withObject:url];
	}
	- (void) _loadImage:(NSString *)u{
	@autoreleasepool {
	NSURL *url=[NSURL URLWithString:u];
	NSData *data=[NSData dataWithContentsOfURL:url];
	UIImage *image=[UIImage imageWithData:data];
	[self performSelectorOnMainThread:@selector(setImage:) withObject:image waitUntilDone:NO];
	}
	}
??????
					
					???·???
App??С????H5?????????????????Щ??
2024/9/11 15:34:34?????????????????????????
2024/9/10 11:13:49P-One ???????????????????????????????????????
2024/9/10 10:14:12???????????????????????????
2024/9/9 18:04:26??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44
					
			
								
								
								
								
								
								
								
								
								
								
				
sales@spasvo.com