摘要: 转自:http://blog.csdn.net/wudizhukk/article/details/8674393获得当前屏幕方向self.interfaceOrientation或[[UIApplication sharedApplication] statusBarOrientation]if(self.interfaceOrientation==UIDeviceOrientationLandscapeRight) {XXOO}不旋转,保持竖屏//iOS 5-(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientat 阅读全文
posted @ 2013-09-24 20:19 清灵阁主 阅读(698) 评论(0) 推荐(0) 编辑
摘要: 转自:http://blog.csdn.net/wudizhukk/article/details/8553554-(void)buttonDown:(id)sender{ ViewTwo*two = [[ViewTwoalloc]init]; two.delegate=self; two.modalPresentationStyle=UIModalPresentationFullScreen; two.modalTransitionStyle=UIModalTransitionStyleFlipHorizontal;//弹出时的动画风格对弹出目标页面设置 [selfpresentMod... 阅读全文
posted @ 2013-09-24 20:18 清灵阁主 阅读(1418) 评论(0) 推荐(0) 编辑
摘要: 转自:http://blog.csdn.net/wudizhukk/article/details/8981535一、KVOKey-Value Observing,它提供一种机制,当指定的对象的属性被修改后,则对象就会接受到通知。每次指定的被观察的对象的属性被修改后,KVO自动通知相应的观察者。model中的定义:@interface StockData : NSObject { NSString * stockName; float price;}@end@implementation StockData@endcontroller中使用,记得上一篇怎么说的吗?这里相当于跟模型说... 阅读全文
posted @ 2013-09-24 20:17 清灵阁主 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 转自:http://blog.csdn.net/wudizhukk/article/details/8607229UIColor常见用法,废话少说 直接网上抄来记录下,凭空想还真有点想不起来,最近记忆力不好,所以记着点。UIColor*myWhiteTransparentColor=[UIColorcolorWithWhite:1.0alpha:0.50]; UIColor*myColorHue=[UIColorcolorWithHue:120.0/360.0 saturation:0.75 brightness:0.50 alpha:1.0 ]; UIColor*myColorRGB=[UI 阅读全文
posted @ 2013-09-24 20:14 清灵阁主 阅读(559) 评论(0) 推荐(0) 编辑
摘要: 转自:http://blog.sina.com.cn/s/blog_4cd14afb01014j97.htmlUITableView用来以表格的形式显示数据。关于UITableView,我们应该注意:(1)UITableView用来显示表格的可见部分,UITableViewCell用来显示表格的一行。(2)UITableView并不负责存储表格中的数据,而是仅仅存储足够的数据使得可以画出当前可见部分。(3)UITableView从UITableViewDelegate协议获取配置信息,从UITableViewDataSource协议获得数据信息。(4)所有的UITableView实现时实际上只 阅读全文
posted @ 2013-09-24 20:11 清灵阁主 阅读(178) 评论(0) 推荐(0) 编辑