小编Sko*_*vie的帖子

应用程序图标徽标编号在ios5中

我只是想知道,如果在iso 5中更改了applicationIconBadgeNumber?

cus当我在sim中运行我的应用程序时,数字工作正常,但如果在我的iPhone上运行它没有显示它?

我没有更改我在iOS 4.3中工作的代码.

int a = [[[UIApplication sharedApplication] scheduledLocalNotifications] count];

application.applicationIconBadgeNumber = a ;
Run Code Online (Sandbox Code Playgroud)

一整天都在谷歌.....

希望你能帮忙

xcode cocoa-touch ios5

2
推荐指数
1
解决办法
5872
查看次数

NSDateFormater +0000

嘿,我在格式化日期时遇到问题....

我的代码是这样的:

 NSString *dateString = news.date;
 NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
 dateFormatter.DateFormat =@"yyyy-MM-dd'T'HH:mm:ss";

 NSDate *dateFromString = [[NSDate alloc] init];

 dateFromString = [dateFormatter dateFromString: dateString];


 NSLog(@" %@", dateFromString);
Run Code Online (Sandbox Code Playgroud)

如果我看看我的dateString是2012-03-06T12:15:45
但是当我格式化时,它出来2012-03-06 11:15:45 +0000

我如何删除+0000 ???

xcode nsdate

2
推荐指数
1
解决办法
3665
查看次数

标签 统计

xcode ×2

cocoa-touch ×1

ios5 ×1

nsdate ×1