博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年11月27日

摘要: //定义一个消息中心[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow:) name:UIKeyboardWillShowNotification object:nil]; //addObserver:注册一个观察员 name:消息名称- (void)keyboardWillShow:(NSNotification *)note {// create custom buttonUIButton *doneButton = [UIButton buttonWithTy 阅读全文

posted @ 2011-11-27 22:43 星尘的天空 阅读(232) 评论(0) 推荐(0) 编辑

摘要: Link Address:http://blog.163.com/lwd_xinghuo@126/blog/static/1682935782011528331843///创建一个基于位图的图形上下文并指定大小为CGSizeMake(200,400)UIGraphicsBeginImageContext(CGSizeMake(200,400));//renderInContext 呈现接受者及其子范围到指定的上下文[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];//返回一个基于当前图形上下文的图片UIImage * 阅读全文

posted @ 2011-11-27 22:35 星尘的天空 阅读(166) 评论(0) 推荐(0) 编辑

摘要: Link Address:http://blog.163.com/lwd_xinghuo@126/blog/static/1682935782011528331843/searchImage.exclusiveTouch = YES;//第一层searchImage.userInteractionEnabled = NO;myMapView.exclusiveTouch = NO;//第二层myMapView.userInteractionEnabled = YES; 阅读全文

posted @ 2011-11-27 22:32 星尘的天空 阅读(200) 评论(0) 推荐(0) 编辑