05 2013 档案

摘要:1.点击UITableViewCell时,没有点击效果,在cellForRowAtIndexPath:方法中写上cell.selectionStyle = UITableViewCellSelectionStyleNone;2.点击UITableCell时,Cell背景颜色不变,但是上面自定义的控件如:UILabel、UIImageView会变颜色设置UILabel或UIImageView的Highlighted然后在cellForRowAtIndexPath:方法中写上UIView*view_bg = [[[UIView alloc]initWithFrame:cell.frame]auto 阅读全文
posted @ 2013-05-17 21:29 小乐" 阅读(283) 评论(0) 推荐(0)
摘要:转:ps(已找不到原文的连接)作用:NSNotificationCenter是专门供程序中不同类间的消息通信而设置的.注册通知:即要在什么地方接受消息[[NSNotificationCenterdefaultCenter]addObserver:selfselector:@selector(mytest:)name:@" mytest"object:nil];参数介绍:addObserver: 观察者,即在什么地方接收通知; selector: 收到通知后调用何种方法; name: 通知的名字,也是通知的唯一标示,编译器就通过这个找到通知的。发送通知:调用观察者处的方法。[ 阅读全文
posted @ 2013-05-16 18:46 小乐" 阅读(275) 评论(0) 推荐(0)
摘要:滑动后效果首先要创建个uiview 在初始化initWithFrame方法中加上UIScrollView视图 上代码scrollView= [[UIScrollViewalloc]initWithFrame:CGRectMake(0,0,[selfbounds].size.width/3,40)]; scrollView.clipsToBounds = NO; [scrollViewsetPagingEnabled:YES]; scrollView.scrollEnabled = YES; scrollView.delegate = self; [scrollVi... 阅读全文
posted @ 2013-05-16 10:36 小乐" 阅读(415) 评论(0) 推荐(0)
摘要:- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ UITableViewCell *cell; if (indexPath.section==1) { UITableViewCell *newsCell = [DataTable dequeueReusableCellWithIdentifier:@"newsCell1"]; if (newsCell==nil) { ... 阅读全文
posted @ 2013-05-10 10:23 小乐" 阅读(275) 评论(0) 推荐(0)
摘要:http://blog.csdn.net/sjx19871225/article/details/8650820http://blog.csdn.net/sjx19871225/article/details/8688091 阅读全文
posted @ 2013-05-03 23:22 小乐" 阅读(204) 评论(0) 推荐(0)
摘要:#import "ViewController.h" #define NAVIGATION_HEIGHT 44 @interface ViewController (private) - (void)initTableView; - (void)initDataArray; - (void)initNavigationBarButton; - (void)addOneCell:(id)sender; - (void)removeOneCell:(id)sender; @end @implementation ViewController @synthesize myTabl 阅读全文
posted @ 2013-05-03 23:08 小乐" 阅读(357) 评论(0) 推荐(0)