- 博客(5)
- 资源 (2)
- 收藏
- 关注
转载 UITableViewCell的背景
UITableViewCell是一个很常用的View,通常我们都是直接使用它。- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *cellIdentifier = @"CellIden
2012-07-19 16:03:00 649
原创 TableView中的cell不可点击
cell.selectionStyle = UITableViewCellSelectionStyleNone;
2012-07-16 10:58:30 522
转载 objc--对于Retain和Assign属性的理解
在写程序时,对于要定义的变量进了习惯于加上retain属性,但对其到底起到什么作用却一直不是很明白,今天做了一个demo,终于弄清了他们的意思。比如我要定义一下字符串var:NSString *var;声明Property时,@property(nonamtic,assign)NSString *var;将属性声明为Assign,当使用@Synthsize生成Get
2012-07-06 11:21:06 1726
翻译 MKMapView上适应所有的坐标
自己封装一下,不是程序内置的实现方式- (void) zoomToAnnotationsBounds:(NSArray *)annotations { CLLocationDegrees minLatitude = DBL_MAX; CLLocationDegrees maxLatitude = -DBL_MAX; CLLocationDegrees
2012-07-05 15:28:30 1036 1
转载 MKMapView自定义pin大小不同,位置对齐问题
系统提供的pin只有红绿蓝三种,爱美的朋友都想自定义pin,可是自定义的pin有时候图片大小或图片指针的方向问题,往往在放大模式图片指针指向的终点不一样。MKAnnotationView系统有个参数可以调节, 打开头文件你会看到这样一段代码:// By default, the center of annotation view is placed over the coo
2012-07-05 12:14:15 621
Learn iPhone and iPad Cocos2D Game 原文及译文
2011-11-16
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人