Han Blog

我干了什么 究竟拿了时间换了什么

CocoaPods最新安装和问题解决教程(干货)

CocoaPods是什么不多说,自己网上去查。今天主要讲CocoaPods的安装问题: 1.(这是原来的,请看下面的更新)首先用淘宝的Ruby镜像来访问CocoaPods,打开终端输入以下命令: (1)gem sources –remove http://ruby.taobao.org/ (2)gem sources -a https://ruby.taobao.org/ (3)ge...

Can't find gem cocoapods

今天pod install后出现了这样一个问题: Ignoring byebug-10.0.2 because its extensions are not built. Try: gem pristine byebug –version 10.0.2 /Library/Ruby/Site/2.3.0/rubygems.rb:289:in `find_spec_for_exe’: can...

CocoaPods改善添加第三方库的效率

pod install –verbose –no-repo-update pod update –verbose –no-repo-update

iOS中将Base64字符串转化成图片

原生方法: NSData *decodeData = [[NSData alloc] initWithBase64EncodedString:base64String options:(NSDataBase64DecodingIgnoreUnknownCharacters)]; UIImage *decodedImage = [UIImage imageWithData: decodeD...

iOS-新开发者账号加入Xcode勾选 Automatically manage signing 后报错问题处理

新开发者账号需要先Add Device后才可以在Xcode中自动签名,不然会报错。

Xcode11上传ipa报错:App Store Connect Operation Error

今天上传App到App Store,出现了App Store Connect Operation Error。An error occurred uploading to the App Store。除此之外没有任何其他信息,邮箱也没有苹果发来的报错信息。 经过一番研究发现是iTMSTransporter被损坏了,导致一直上传不了App。最后用xcrun altool命令上传成功。故此记录...

Your app uses the prefs:root= 审核被拒

近期上线一个app,苹果发来一封邮件提示为审核被拒: Guideline 2.5.1 - Performance - Software Requirements Your app uses the “prefs:root=” non-public URL scheme, which is a private entity. The use of non-public APIs is no...

MBProgressHUD设置背景方框为透明

先设置hud.bezelView 的style 为MBProgressHUDBackgroundStyleSolidColor,然后再设置其背影色就可以了。默认的style 是MBProgressHUDBackgroundStyleBlur。 废话不多说,直接上代码: OC: MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:self...

Hello World

Hello World