我正在尝试从pod规范上的存储库分支安装代码,并且基于文档,这应该工作:
s.dependency 'repository_name',
:git => 'https://github.com/account_name/repository_name.git',
:branch => 'experimental_branch'
Run Code Online (Sandbox Code Playgroud)
但是我收到了类似[!]不支持的版本要求的错误.更新CocoaPods可能会解决问题.
它直接从pod文件安装时有效:
pod 'ObjectiveRecord', :git => 'https://github.com/supermarin/ObjectiveRecord.git', :branch => '2-0-experimental'
Run Code Online (Sandbox Code Playgroud)
有人知道吗?谢谢!
我目前正在开发一个音乐播放器应用程序,就像iPod应用程序一样,我想用摇晃手势来播放歌曲.
我正在实施像Apple推荐的运动方法,并且在前台一切正常.
- (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event;
- (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event;
- (void)motionCancelled:(UIEventSubtype)motion withEvent:(UIEvent *)event;
Run Code Online (Sandbox Code Playgroud)
但我无法弄清楚如何从后台调用这些方法.我看过整个互联网,并没有关于这个的线索.
首先要做的事情是:有可能吗?
感谢名单!
iphone objective-c motion-detection gesture-recognition handshake