码迷,mamicode.com
首页 > 移动开发 > 详细

ios扩展的一些知识点

时间:2014-07-26 17:14:51      阅读:282      评论:0      收藏:0      [点我收藏+]

标签:ios   extends   

ios扩展的一些知识点

by 伍雪颖

- (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator {
    if (coordinator) {
        
    }else {
        
    }
}

导航显示内容:
- (void)widgetPerformUpdateWithCompletionHandler:(Void) (^)(NCUpdateResult))completionHandler {
    [self getPosts:^(BOOL didUpdate) {
        
    }];
}

系统分享功能:
self.audienceConfigurationItem.tapHandler = ^{
	ShareViewController *strongSelf = weakSelf;
	if (strongSelf) {
		AudiencePickerViewController *audiencePicker = [[AudiencePickerViewController alloc] init];
		audiencePicker.delegate = strongSelf;
		audiencePicker.selectedAudience = strongSelf.audience;
		[strongSelf pushConfigurationViewController:audiencePicker];
	}
}

- (void)AudiencePickerViewController:(AudiencePickerViewController *)
	audiencePickerViewController didSelectAudience:(NSString *)audience {
		self.audience = audience;
		self.audienceConfigurationItem.value = self.audience;

		double delayInSeconds = 0.4;
		dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW,delayInSeconds * NSEC_PER_SEC);
		dispatch_after(popTime,disptach_get_main_queue(),^(void) {
			[self popConfigurationViewController];
		});
	}



ios扩展的一些知识点,布布扣,bubuko.com

ios扩展的一些知识点

标签:ios   extends   

原文地址:http://blog.csdn.net/rainlesvio/article/details/38147181

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!