- 実践 iOSアプリ開発 - ReactorKitを利用した設計手法 速習会@Wantedly
- 題材アプリ
- GitHub のリポジトリの検索と閲覧
- https://github.com/hedjirog/GitHubSearch
| #import "KeyboardViewController.h" | |
| @interface KeyboardViewController () | |
| @end | |
| @implementation KeyboardViewController | |
| - (void)updateViewConstraints { | |
| [super updateViewConstraints]; |
iOS向けライブラリ/アプリのテスト手法について調査した内容。
| if [[ "${CONFIGURATION}" == "Debug" && "${PLATFORM_NAME}" != *simulator* ]]; then | |
| plist="${BUILT_PRODUCTS_DIR}/${INFOPLIST_PATH}" | |
| ip=$(ifconfig en0 | grep "inet[^6]" | cut -d" " -f2) | |
| url=$(/usr/libexec/PlistBuddy -c "Print :APIBaseURL" $plist) | |
| url=$(echo $url | sed "s|\(http://\)[^:/]*\(.*\)|\1$ip\2|") | |
| /usr/libexec/PlistBuddy -c "Set :APIBaseURL $url" $plist | |
| fi |
| - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context | |
| { | |
| if (![NSThread isMainThread]) { | |
| dispatch_async(dispatch_get_main_queue(), ^{ | |
| [self observeValueForKeyPath:keyPath ofObject:object change:change context:context]; | |
| }); | |
| return; | |
| } |