2011年6月30日

摘要: 这几天通过iTunes看了斯坦福大学的视频教程,学到了不少东西,给大家推荐一下:斯坦福iPhone编程课程收看次数破百万http://zx.sj.91.com/content/2009-05-18/20090518175143833.shtmlhttp://itunes.stanford.edu/其他iPhone资料:10家不错的iPhone编程资源网站http://news.weiphone.com/news/2008-12-12/10jiabucuodeiPhonebianchengziyuanwangzhan_171541.shtmliphone遊戲編程教材網站推薦今天無意中找到這個叫 阅读全文
posted @ 2011-06-30 10:04 禚来强 阅读(464) 评论(0) 推荐(0)
摘要: 1. 首先要明确的是,不使用pushViewController的默认动画,所以在调用这个函数时,要将animated设置为NO.2. 使用普通的来CATransition实现转换效果,代码如下: CATransition *animation = [CATransition animation]; [animation setDuration:0.3]; [animation setType: kCATransitionMoveIn]; [animation setSubtype: kCATransitionFromTop]; [animation setTimingFunction:[CA 阅读全文
posted @ 2011-06-30 10:00 禚来强 阅读(5162) 评论(0) 推荐(0)
摘要: 自定义了一个UITableViewCell,但是在显示在TableView中时,第一个Cell左上角和右上角显示的时候,没有圆角,检查了一下代码,将Cell子类中设置frame的语句屏蔽掉就可以了:- (id)initWithStyle:(UITableViewCellStyle) style reuseIdentifier: (NSString *) reuseIdentifier{ if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) { //remove this line to keep firs 阅读全文
posted @ 2011-06-30 09:46 禚来强 阅读(1829) 评论(0) 推荐(0)
摘要: 图片圆角 image round corner:m_mainImgView.layer.cornerRadius = 6;m_mainImgView.layer.masksToBounds = YES;自动适应,保持图片宽高比 aspect fit:m_mainImgView.contentMode = UIViewContentModeScaleAspectFit;见下图:Ori:round corner:Aspect Fit: 阅读全文
posted @ 2011-06-30 09:43 禚来强 阅读(904) 评论(0) 推荐(0)
摘要: 使UITableView最上面留出UINavigationBar空间的两种方法使UINavigationBar透明,TableView在其下面,可以扩大UITableView的视野.1) UIView *headerView = [[UIView alloc] initWithFrame: CGRectMake(0, 0, 320, 44)]; m_tableView.tableHeaderView = headerView;2) m_tableView.contentInset = UIEdgeInsetsMake(44, 0, 0, 0); m_tableView.scrollIndica 阅读全文
posted @ 2011-06-30 09:42 禚来强 阅读(1181) 评论(0) 推荐(0)

导航