iOS 日期转String 代码类型的使用方法
来源:互联网 发布:英语四级乱序词汇软件 编辑:程序博客网 时间:2024/05/16 12:36
-(void)initDateViewNaviBar{
/*
self.navigationBar=[[UINavigationBar alloc]initWithFrame:CGRectMake(0, 0,self->viewWidth , 49)];
UINavigationItem *navigationItem=[[UINavigationItem alloc]initWithTitle:@"2014-10-29周三"];
[self.navigationBar pushNavigationItem:navigationItem animated:YES];
[self.view addSubview:self.navigationBar];
*/
self.naviLabel=[[UILabelalloc]initWithFrame:CGRectMake(0,0, self->viewWidth,49)];
NSDate *currentDate=[NSDatedate];
NSDateFormatter *dateFormatter = [[NSDateFormatteralloc]init];
/*
[dateFormatter setDateFormat:@"yyyy-MM-dd 周e"];
NSString *currentSysDate = [dateFormatter stringFromDate:currentDate];
*/
[dateFormattersetDateFormat:@"yyyy-MM-dd"];
NSString * currentSysDate=[dateFormatter stringFromDate:currentDate];
self.naviLabel.text=currentSysDate;
self.naviLabel.textAlignment = NSTextAlignmentCenter;
[self.viewaddSubview:self.naviLabel];
}
- iOS 日期转String 代码类型的使用方法
- string 类型的使用方法
- 日期转string类型
- iOS 日期转string
- 日期类型与String类型的转换
- Android开发之 当前日期String类型转date类型 java代码中实现方法
- freemaker String类型的时间戳转日期
- 获取String类型的日期和时间
- 日期和String类型的工具类
- Java日期类型与String的转换
- String类型的日期加减一天
- String 类型 日期时间大小的比较
- Flex String类型的日期时间给日期组件赋值
- 将timestamp 日期类型转为String 类型的小技巧
- date日期类型与String类型的相互转化
- date日期类型与String类型的相互转化
- date日期类型与String类型的相互转化
- java中String类型的日期转成Date类型
- 模拟退火算法
- Selenium Webdriver1---创建Selenium-WebDriver工程
- eclipse相关配置
- Linux服务器,无法远程控制
- Best Time to Buy and Sell Stock III
- iOS 日期转String 代码类型的使用方法
- ubntu 14.04 安装
- 特征选择常用算法综述
- 中文数字转int
- linux c /指针数组的使用及字符串排序
- lighttpd优化
- win7 32位解决matlab out of memory问题
- 证明你真正富有的8个元素,其中7个与金钱无关
- sqlite3的数据类型