This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use_frameworks! | |
target 'RxTableView' do | |
pod 'RxSwift' | |
pod 'RxDataSources' | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func getUsers() -> Observable<[SectionModel<String, User>]> { | |
return Observable.create { (observer) -> Disposable in | |
let users = [User(followersCount: 1005, followingCount: 495, screenName: "BalestraPatrick"), | |
User(followersCount: 380, followingCount: 5, screenName: "RxSwiftLang"), | |
User(followersCount: 36069, followingCount: 0, screenName: "SwiftLang")] | |
let section = [SectionModel(model: "", items: users)] | |
observer.onNext(section) | |
observer.onCompleted() | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>CFBundleDevelopmentRegion</key> | |
<string>en</string> | |
<key>CFBundleExecutable</key> | |
<string>$(EXECUTABLE_NAME)</string> | |
<key>CFBundleIdentifier</key> | |
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int totalSize = 0; | |
// Adjust the value (in this example: 2000) to your maximum key that you know you're using in your app | |
for (int i = 0; i < 2000; i++) { | |
if (persist_exists(i)) { | |
int size = persist_get_size(i); | |
totalSize = totalSize + size; | |
} | |
} | |
APP_LOG(APP_LOG_LEVEL_DEBUG, "Persistent storage used = %d", totalSize); |
NewerOlder