我分叉了CBZSplashView,我想在我自己的项目中使用它.
为了确保问题不是来自我,我从头开始创建一个Xcode项目.
我的项目Podfile包含一行:
pod 'CBZSplashView', :git=> 'git@github.com:rvirin/CBZSplashView.git', :branch => 'remy'
Run Code Online (Sandbox Code Playgroud)
当我跑步pod install或者pod update我有原始版本的吊舱 - 而不是我的前叉.
我做错了什么?
该:git参数会覆盖podspec的源.
我尝试修改podspec以指示源文件现在位于我的存储库中,但也无法正常工作.
记录pod update --verbose:
-> Pre-downloading: `CBZSplashView` from `git@github.com:rvirin/CBZSplashView.git`, tag `1.0.1`
> GitHub download
$ /usr/bin/git config core.bare
true
$ /usr/bin/git config core.bare
true
> Updating cache git repo (/Users/rvi/Library/Caches/CocoaPods/GitHub/8520768890e6fa2ea91b3d9e8bb9f2afbb31ab60)
$ /usr/bin/git remote update
Fetching origin
> Cloning to Pods folder
$ /usr/bin/git clone /Users/rvi/Library/Caches/CocoaPods/GitHub/8520768890e6fa2ea91b3d9e8bb9f2afbb31ab60 /Users/rvi/Devs/Lima/iOS/Lima/Pods/CBZSplashView
Cloning into '/Users/rvi/Devs/Lima/iOS/Lima/Pods/CBZSplashView'...
done.
$ …Run Code Online (Sandbox Code Playgroud) 我正在制作一个可以播放音乐的应用.我正在尝试在锁定屏幕上显示元数据(标题,艺术家和艺术作品图像).
MPNowPlayingInfoCenter似乎很好用MediaPlayer.framework,但我无法想象它可以AVPlayer在iOS 7上运行.
该播放器在后台模式下运行良好感谢AVAudioSession:
AVAudioSession *session = [AVAudioSession sharedInstance];
[session setCategory:AVAudioSessionCategoryPlayback error:&error];
[session setActive:YES error:&error];
Run Code Online (Sandbox Code Playgroud)
这是我在锁屏上显示元数据的代码(不起作用):
Class playingInfoCenter = NSClassFromString(@"MPNowPlayingInfoCenter");
if (playingInfoCenter)
{
NSDictionary *nowPlaying = @{MPMediaItemPropertyArtist: currentTrack.artist,
MPMediaItemPropertyAlbumTitle: currentTrack.title};
[[MPNowPlayingInfoCenter defaultCenter] setNowPlayingInfo:nowPlaying];
}
Run Code Online (Sandbox Code Playgroud)
任何帮助,将不胜感激 !
谢谢你读这个:)
我正在使用Jenkins来运行我的构建,并更新我的项目的github状态.
这很好用.
我想在我的网站上使用http://shields.io/显示构建的状态README.md,就像Travis那样.
想过我怎么能这样做?
我不想在我的项目中使用特拉维斯,我想保留詹金斯.
谢谢 !
我正在尝试获取所有专辑名称.这就是我做的.
该方法[group valueForKey:ALAssetsGroupPropertyName]崩溃了
ALAssetsLibrary *assetsLibrary = [[ALAssetsLibrary alloc] init];
[assetsLibrary enumerateGroupsWithTypes:ALAssetsGroupSavedPhotos | ALAssetsGroupAlbum
usingBlock:^(ALAssetsGroup *group, BOOL *stop) {
if (nil != group)
{
NSLog(@"name %@",[group valueForKey:ALAssetsGroupPropertyName]);
}
*stop = NO;
} failureBlock:^(NSError *error) {
NSLog(@"error: %@", error);
}];
Run Code Online (Sandbox Code Playgroud)
我真的不知道为什么会崩溃,如果有人知道,我真的很感激一些帮助!
这是崩溃日志:
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<ALAssetsGroup 0x17801ff90> valueForUndefinedKey:]: this class is not key value coding-compliant for the key ALAssetsGroupPropertyName.`
Run Code Online (Sandbox Code Playgroud)