
iOSjson格式
Creator_Su
做過項目開發,帶過團隊,對於移動端的開發流程比較熟悉,項目的推廣和產品都熟悉
展开
-
iOS json格式转换
+(NSString *)jsonStringWithString:(NSString*) string{ return[NSString stringWithFormat:@""%@"", [[stringstringByReplacingOccurrencesOfString:@"\n"withString:@"\\n"]stringByReplacingOc原创 2017-08-04 14:30:43 · 3010 阅读 · 0 评论 -
UIAlertView 自动消失
- (void)showAlert{ UIAlertView *alert = [[UIAlertViewalloc]initWithTitle:@"提示"message:@"2秒后将消失"delegate:nil cancelButtonTitle:nilotherButtonTitles:nil]; [alertshow];原创 2017-10-28 10:37:50 · 290 阅读 · 0 评论 -
iOS 判断当前页面是哪一个Viewcontroller
-(UIViewController*)atPersentViewController:(UIViewController*)vc { if (vc.presentedViewController) { return [self atPersentViewController:vc.presentedViewContr转载 2018-01-30 19:57:38 · 5762 阅读 · 0 评论 -
NSArray 有字典,转换json
+ (NSString *)arrayToJSONString:(NSArray *)array{ NSError *error = nil; NSData *jsonData = [NSJSONSerialization dataWithJSONObject:array options:NSJSONWritingPrettyPrinted error:&error原创 2018-02-07 16:30:13 · 482 阅读 · 0 评论