michaelhuyp / bilibili_wuxianda Goto Github PK
View Code? Open in Web Editor NEW高仿Bilibili客户端 - ( ゜- ゜)つロ 乾杯~
License: MIT License
高仿Bilibili客户端 - ( ゜- ゜)つロ 乾杯~
License: MIT License
界面写得很不错,我也想模仿一下,看到 YPLiveContentTableViewCell.m 这个文件时我懵逼了,就是以下这两个方法中:
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section
{
return 4;
}
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
{
if (indexPath.item >= 4) return nil;
YPLiveContentCollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:YPLiveContentCollectionViewCellID forIndexPath:indexPath];
cell.model = _model.lives[indexPath.item];
return cell;
}
我尝试着将第一个方法返回 3 或者更小的数字,并且将 if (indexPath.item >= 4) return nil; 注释掉,然后就报错了:
2016-09-21 11:04:42.614 Wuxianda[16172:421667] *** Assertion failure in -[UICollectionViewData validateLayoutInRect:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3512.60.7/UICollectionViewData.m:399
2016-09-21 11:04:42.627 Wuxianda[16172:421667] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'UICollectionView received layout attributes for a cell with an index path that does not exist: <NSIndexPath: 0xc000000000400016> {length = 2, path = 0 - 2}'
这是为什么呢?因为有时候如果数据只是返回 3 条或者 1 条这样子,显示的时候就不能固定死条数为 4。
望赐教。
1.删掉project.xcworkspace重新pod install还是会报The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.这个错误
2.Result这个库报错,请问是Xcode7.2不支持swift3?
//将podfile中的
pod 'ReactiveCocoa', '~> 4.1.0'
//替换成
pod 'ReactiveObjC'
//然后将
#import "ReactiveCocoa.h"
//替换成
#import "ReactiveObjC.h"
这个 framework没提交上
基于ijkplayer的播放器播放普通视频的时候快进或者后退会导致视频停止播放
(https://user-images.githubusercontent.com/15187620/33116684-a1fb82f4-cfa0-11e7-8082-c2615c28855d.png)
..
The “Swift Language Version” (SWIFT_VERSION) build setting must be set to
geligeli.com
pod --version
1.1.0.beta.1
pod install之后还是报错,#import "GPUImageFilter.h" 报头文件找不到。xcode版本为7.3
作者你好,我已将你的IJKMediaFramework.h下载了拖进去,还是找不到IJKMediaFramework.h,怎么办,我自己编译的IJKMediaFramework.h导进去也找不到
运行时候显示
'swift_name'attribute cannot be apploed to this declaration
/Bilibili_Wuxianda-master/Pods/pili-librtmp/Pod/Classes/pili-librtmp/dh.h:148:10: 'openssl/bn.h' file not found
这个LFLIVEkit 真难搞
我把pod install,也把ijkplayer导入了,那刚开始的5个错解决了,podfile里GPUImage框架被注释掉了,我把注释取消掉然后从新安装发现还是少一个文件啊GPUImageContext.h file not found,求指教啊
Undefined symbols for architecture i386:
"OBJC_CLASS$_QQApiAudioObject", referenced from:
objc-class-ref in libSocialQQ.a(UMSocialQQHandler.o)
《希望能把这个项目写完,还有许许多多的功能点没有写,持续更新中...》
| ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄|
原神,启动!
|_____________|
\ (•◡•) /
\ /
——
| |
|_ |_
[!] /bin/bash -c
set -e
sh build.sh cocoapods-setup
core is not a symlink. Deleting...
Downloading dependency: core 1.3.1
Downloading core failed:
curl: (35) Server aborted the SSL handshake
Installing Realm (3.1.0)
[!] /bin/bash -c
set -e
sh build.sh cocoapods-setup
core is not a symlink. Deleting...
Downloading dependency: sync 2.2.9
Downloading sync failed:
https://static.realm.io/downloads/sync/realm-sync-cocoa-2.2.9.tar.xz
curl: (56) Unexpected EOF
-> Installing ReactiveCocoa (4.1.0)
Git download
Git download
$ /usr/local/bin/git clone https://github.com/ReactiveCocoa/ReactiveCocoa.git /var/folders/np/wz0lj92s0lxbn4rn7d4xqqkh0000gn/T/d20161003-72847-3xqn9h --template= --single-branch --depth 1
--branch v4.1.0
Cloning into '/var/folders/np/wz0lj92s0lxbn4rn7d4xqqkh0000gn/T/d20161003-72847-3xqn9h'...
Note: checking out 'fdbd3676cc4305c48e53bc25aebdb0eb607cdc2b'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
Running prepare command
$ /bin/bash -c set -e sed -i '' 's@<ReactiveCocoa/(.)>@"\1"@g' ReactiveCocoa/ReactiveCocoa.h
sed: can't read s@<ReactiveCocoa/(.)>@"\1"@g: No such file or directory
[!] /bin/bash -c
set -e
sed -i '' 's@<ReactiveCocoa/(.*)>@"\1"@g' ReactiveCocoa/ReactiveCocoa.h
sed: can't read s@<ReactiveCocoa/(.*)>@"\1"@g: No such file or directory
虽然也帮不上什么忙,点个星,以资鼓励了.
pod还原到了0.39还是失败,求作者直接压缩传百度。
我想学一下这个 Banner 无限滚动是怎么实现的,然后有一些不理解,就是在YPCycleBanner.m 文件中,你一开始在 layoutSubviews 方法中写到:
_mainView.contentInset = UIEdgeInsetsMake(0, -((_totalItemsCount * 0.5 - 1) * YPScreenW), 0, -((_totalItemsCount * 0.5 - 2) * YPScreenW));
然后在 automaticScroll 的方法写到
_mainView.contentInset = UIEdgeInsetsMake(0, 0, 0, 0);
为什么需要在 layoutSubviews 设置 contentInset 呢?设置了有什么作用,我去掉了好像也没有什么影响的?
`[!] Error installing Realm
[!] /usr/local/bin/git clone https://github.com/realm/realm-cocoa.git /var/folders/9d/jrxjl4_14tj1w33z34jkrxjm0000gn/T/d20160807-80621-mqozat --template= --single-branch --depth 1 --branch v1.0.2
Cloning into '/var/folders/9d/jrxjl4_14tj1w33z34jkrxjm0000gn/T/d20160807-80621-mqozat'...
error: RPC failed; curl 56 SSL read: error:00000000:lib(0):func(0):reason(0), errno 54
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed`
请问这个怎么解决,网上也没搜到。谢谢
pod 之后 一直报错 #import <IJKMediaFramework/IJKMediaFramework.h>,找不到头文件
`[!] /bin/bash -c
set -e
sh build.sh cocoapods-setup
core is not a symlink. Deleting...
Downloading dependency: core 1.3.1
Downloading core failed:
curl: (56) SSLRead() return error -9806`
请问这个怎么解决?
我照着这个上面的方法试了一次,但还是报错。
链接: http://stackoverflow.com/questions/26461966/osx-10-10-curl-post-to-https-url-gives-sslread-error
有Android版本的吗?
Analyzing dependencies
Pre-downloading: Realm
from https://github.com/realm/realm-cocoa.git
[!] /bin/bash -c
set -e
sh build.sh cocoapods-setup
core is not a symlink. Deleting...
Downloading dependency: core 1.4.1
ERROR: One of Realm's submodules is missing!
If you're using Realm and/or RealmSwift from a git branch, please add 'submodules: true' to
their entries in your Podfile.
怎么不更新了
请教一下个人中心里我要直播点击后闪退无法获取授权是为什么?
当我pod的时候出现这个问题
[!] Error installing Realm
[!] /Applications/Xcode.app/Contents/Developer/usr/bin/git clone [email protected]:realm/realm-cocoa.git /var/folders/lk/wdhcms2s6j16vnmnqhrr6q80fbjp1k/T/d20160728-64202-u6bg1m --single-branch --depth 1
Cloning into '/var/folders/lk/wdhcms2s6j16vnmnqhrr6q80fbjp1k/T/d20160728-64202-u6bg1m'...
Warning: Permanently added the RSA host key for IP address '192.30.253.113' to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
然而发现它并没有排序参数.也就是以前的 sign方式不能用了.
尝试了一下{"code":-5003,"result":"checksum error"}
目前在开发一个关于bilibili的插件.被视频源的问题困扰了.
希望获得解答.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.