原创
naziyu
这个作者很懒,什么都没留下…
展开
-
百度地图API,授权失败,错误码:240
最近要集成百度地图,让公司领导注册一个百度账号,拿AK,结果填上之后,-(void)onCheckPermissionState:(BMKLocationAuthErrorCode)iError{ if (0 == iError) { NSLog(@"鉴权成功"); } else { NSLog(@"鉴权失败:%ld", (long)iError); }}- (void)onGetPermissionState:(int)iE...原创 2020-09-10 13:24:53 · 2405 阅读 · 0 评论 -
设置textfiel的Placeholder
textfield.attributedPlaceholder=[[NSAttributedString alloc]initWithString:@"请输入"attributes:@{NSForegroundColorAttributeName:kTextColor999999}];原创 2020-09-08 02:04:29 · 160 阅读 · 0 评论 -
AVCaptureMovieFileOutput 录制视频超过10s没有声音
解决方案self.FileOutput=[[AVCaptureMovieFileOutput alloc]init];self.FileOutput.movieFragmentInterval = kCMTimeInvalid;原创 2020-08-27 09:27:34 · 705 阅读 · 0 评论 -
nslog 打印控制台显示中文
#ifdef DEBUG#define NSLog(FORMAT, ...) fprintf(stderr,"\n %s:%d %s\n",[[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String],__LINE__, [[[NSString alloc] initWithData:[[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] dataUsingEncodi.原创 2020-08-17 11:36:34 · 309 阅读 · 0 评论 -
swift Alamofire get 请求出现 Error Domain=NSURLErrorDomain Code=-1001 "请求超时。" UserInfo={NSUnderlyingErro
Error Domain=NSURLErrorDomain Code=-1001 "请求超时。" UserInfo={NSUnderlyingError=0x1c0a48310 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)" UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErr...原创 2019-11-18 18:18:44 · 6201 阅读 · 0 评论