mirror of
https://github.com/wahyd4/Yep.git
synced 2026-08-15 07:45:55 +10:00
Fix let retain
This commit is contained in:
@@ -40,7 +40,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
|
||||
let directory: NSURL = NSFileManager.defaultManager().containerURLForSecurityApplicationGroupIdentifier(YepConfig.appGroupID)!
|
||||
let realmPath = directory.URLByAppendingPathComponent("db.realm").path!
|
||||
|
||||
return Realm.Configuration(path: realmPath, schemaVersion: 1, migrationBlock: { migration, oldSchemaVersion in
|
||||
return Realm.Configuration(path: realmPath, schemaVersion: 2, migrationBlock: { migration, oldSchemaVersion in
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -1164,11 +1164,17 @@ class ConversationViewController: BaseViewController {
|
||||
feedView.feed = feed
|
||||
|
||||
feedView.foldAction = { [weak self] in
|
||||
self?.conversationCollectionView.contentInset.top = 64 + FeedView.foldHeight + conversationCollectionViewContentInsetYOffset
|
||||
|
||||
if let strongSelf = self {
|
||||
|
||||
self?.conversationCollectionView.contentInset.top = 64 + FeedView.foldHeight + strongSelf.conversationCollectionViewContentInsetYOffset
|
||||
}
|
||||
}
|
||||
|
||||
feedView.unfoldAction = { [weak self] feedView in
|
||||
self?.conversationCollectionView.contentInset.top = 64 + feedView.normalHeight + conversationCollectionViewContentInsetYOffset
|
||||
if let strongSelf = self {
|
||||
self?.conversationCollectionView.contentInset.top = 64 + feedView.normalHeight + strongSelf.conversationCollectionViewContentInsetYOffset
|
||||
}
|
||||
}
|
||||
|
||||
//feedView.backgroundColor = UIColor.orangeColor()
|
||||
|
||||
Reference in New Issue
Block a user