lzwjava / LZAlbum

Moments based on LeanCloud, use LeanCloud elegantly
https://leancloud.cn/
428 stars 93 forks source link

pid #6

Open mikiXuan opened 8 years ago

mikiXuan commented 8 years ago

bogon:LZAlbum wenxuanshin$ pod install Analyzing dependencies

CocoaPods 0.39.0 is available. To update use: gem install cocoapods

For more information see http://blog.cocoapods.org and the CHANGELOG for this version http://git.io/BaH8pQ.

Downloading dependencies Installing AVOSCloud (3.1.6.3) Installing DWTagList (0.0.7) Installing DateTools (1.7.0) Installing FXForms (1.2.14) Installing MBProgressHUD (0.9.1) Installing SDWebImage (3.7.3) Generating Pods project 2015-11-17 16:20:47.296 ruby[3568:262936] [MT] DVTAssertions: ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-9081/IDEFoundation/Initialization/IDEInitialization.m:590 Details: Assertion failed: _initializationCompletedSuccessfully Function: BOOL IDEIsInitializedForUserInteraction() Thread: <NSThread: 0x7f981cef0840>{number = 1, name = main} Hints: None Backtrace: 0 0x000000010d528f86 -[DVTAssertionHandler handleFailureInFunction:fileName:lineNumber:assertionSignature:messageFormat:arguments:](in DVTFoundation) 1 0x000000010d528713 _DVTAssertionHandler (in DVTFoundation) 2 0x000000010d52897f _DVTAssertionFailureHandler (in DVTFoundation) 3 0x000000010d5288e1 _DVTAssertionFailureHandler (in DVTFoundation) 4 0x000000010f2456ad IDEIsInitializedForUserInteraction (in IDEFoundation) 5 0x0000000111a78081 +[PBXProject projectWithFile:errorHandler:readOnly:](in DevToolsCore) 6 0x0000000111a79c06 +[PBXProject projectWithFile:errorHandler:](in DevToolsCore) 7 0x00007fff925f8f44 ffi_call_unix64 (in libffi.dylib) Abort trap: 6 之后进程序就会出现与上一个提问者一样的关联错误

mikiXuan commented 8 years ago

更新cocoapod就好了。。。

lzwjava commented 8 years ago

棒。平时可以加个参数 pod instal --verbose --no-repo-update 这样更快一点

mikiXuan commented 8 years ago

@lzwjava 对了,提个问题 为什么不把点赞的那个框做成动态可变的呢?现在应该是只显示一行的名字,到第二行的就不见了。在之前的一版本是点赞栏可以上下滑动,虽然只有一行但是滑动一下也是可以显示的。我在修改的时候发现那个点赞用的第三方库,他的提前计算高度的那个方法返回的值不正确,所以没法提前计算点赞栏的高度。后来我是直接生成cell,然后直接摆放在界面上,但是这样效率一般,而且不太适合动态滑动添加栏目,所以那一版我做的分页的。请问作者这个问题准备解决么?

mikiXuan commented 8 years ago

现在是准备回归微信的刷新动态添加栏目了,所以回来取取经

mikiXuan commented 8 years ago

对了 看你的更新想起来一个问题:LZAlbumReplyView.h 里面的弹键盘bug,我查到的原因是因为在ios9里面UIKeyboardDidShowNotification错误的通知,我解决的办法是加了个bool值isFirstResponder做判断,解决方法简单直接 -(void)keyboardDidShow{ if (isFirstResponder==NO) {

    [self becomeFirstResponderForInputTextField];
    isFirstResponder=YES;
}

}

-(void)resignFirstResponderForTwoTextFields{ if([self.inputTextField isFirstResponder]){ [self.inputTextField resignFirstResponder]; }

if([self.textField isFirstResponder]){
    [self.textField resignFirstResponder];
}

isFirstResponder=NO;

}