iOS 开发小坑[持续更新]

  1. AVAudioPlayer
    使用AVAudioPlayer播放本地音乐的时候,是否没有声音没有什么反应?试一试把AVAudioPlayer作为全局变量 O(∩_∩)O哈哈~

    1. pod 报错:
/Users/xxx/.rvm/gems/ruby-2.4.0/gems/cocoapods-1.2.1/lib/cocoapods/command.rb:129:in `verify_minimum_git_version!': [!] You need at least git version 1.8.5 to use CocoaPods (Pod::Informative)
    from /Users/xxx/.rvm/gems/ruby-2.4.0/gems/cocoapods-1.2.1/lib/cocoapods/command.rb:49:in `run'
    from /Users/xxx/.rvm/gems/ruby-2.4.0/gems/cocoapods-1.2.1/bin/pod:55:in `<top (required)>'
    from /Users/xxx/.rvm/gems/ruby-2.4.0/bin/pod:23:in `load'
    from /Users/xxx/.rvm/gems/ruby-2.4.0/bin/pod:23:in `<main>'
    from /Users/xxx/.rvm/gems/ruby-2.4.0/bin/ruby_executable_hooks:15:in `eval'
    from /Users/xxx/.rvm/gems/ruby-2.4.0/bin/ruby_executable_hooks:15:in `<main>'

经查阅,1.有人说是xcode版本太低,需要升级xcode
2.可我是最新的版本,可能跟我之前有两个一毛一样的xcode(为了安装插件,修改其中一个xcode的签名, 虽然后来还是给卸掉了)有关系,用命令指定xcode路径 – sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer,就解决了。

  1. This application’s application-identifier entitlement does not match that of the installed application. These values must match for an upgrade to be allowed.
    <— 卸掉真机上的程序重新运行>

4.TableViewHeaderView在iOS8.0下显示不全

解决方法:1.将tableView.headerView = HeaderView写在 viewWillAppear方法里
2.Nib文件里的自带的View删除 自己重新添加
【摘自http://www.jianshu.com/p/4e809c19a27e 亲测有效】

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值