10 2018 档案
摘要:NSString * str = @"123/21年123" NSCharacterSet *nonDigitCharacterSet = [[NSCharacterSet decimalDigitCharacterSet] invertedSet]; //获取字符串中的数字 str = [[str
阅读全文
摘要:加载本地html带有参数 NSString *htmlPath = [[NSBundle mainBundle] pathForResource:@"views/index" ofType:@"html"]; //加载本地html带有参数 NSURL *url = [NSURL URLWithStr
阅读全文
摘要:设置请求头:[manager.requestSerializer setValue:@"application/json" forHTTPHeaderField:@"Content-Type"]; GET方法设置请求头的时候没什么问题;但是使用POST方法时设置无效,使用其他方法都没用,后来发现没有
阅读全文