![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
iOS
北斗定位
这个作者很懒,什么都没留下…
展开
-
iOS-获取的NSDate date时间与实际相差8个小时解决方案
NSDate *date = [NSDate date];//得到的为美国的本地时间 方法一: NSTimeZone *zone = [NSTimeZone systemTimeZone]; NSInteger interval = [zone secondsFromGMTForDate:date]; NSDate *localeDate =[date dateByAd原创 2013-10-17 11:22:57 · 891 阅读 · 0 评论 -
UItableView当前选中的行的颜色变化的问题
只需在 -(UITableViewCell *) tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{}中修改 cell.selectedBackgroundView = [[[UIView alloc] initWithFrame:cell.frame] autorelea转载 2013-10-28 11:33:47 · 632 阅读 · 0 评论 -
iOS NSString的常用用法
//1、创建常量字符串。 NSString *astring = @"This is a String!"; //2、创建空字符串,给予赋值。 NSString *astring = [[NSString alloc] init]; astring = @"This is a String!"; [astring release];转载 2013-10-31 16:53:51 · 383 阅读 · 0 评论 -
在iOS8系统下,UITabbar上的item自定义背景色和图片问题
解决方法: //选择的图片 UITabBar *tabBar = self.tabBar; UITabBarItem *tabBarItem1 = [tabBar.items objectAtIndex:0]; UITabBarItem *tabBarItem2 = [tabBar.items objectAtIndex:1];转载 2014-11-04 10:15:18 · 390 阅读 · 0 评论