摘要: 1 //初始化label 2 UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0,0,0,0)]; 3 //设置自动行数与字符换行 4 [label setNumberOfLines:0]; 5 label.lineBreakM... 阅读全文
posted @ 2014-09-03 09:37 激情为梦想而生 阅读(149) 评论(0) 推荐(0) 编辑
摘要: iOS中的core location提供了定位功能,能定位装置的当前坐标,同时能得到装置移动信息。因为对定位装置的轮询是很耗电的,所以最好只在非常必要的前提下启动。其中,最重要的类是CLLocationManager,定位管理。其定位有3种方式:1,GPS,最精确的定位方式,貌似iphone1是不支... 阅读全文
posted @ 2014-09-03 09:15 激情为梦想而生 阅读(184) 评论(0) 推荐(0) 编辑