Skip to content

Instantly share code, notes, and snippets.

View jiro's full-sized avatar

Jiro Nagashima jiro

View GitHub Profile
@jiro
jiro / gist:17b7cf737e9e0aabf338
Last active August 25, 2016 05:55
WebエンジニアのためのiOSデバッグ速習会メモ@wantedly
#import "KeyboardViewController.h"
@interface KeyboardViewController ()
@end
@implementation KeyboardViewController
- (void)updateViewConstraints {
[super updateViewConstraints];
@jiro
jiro / gist:ebe45fabde1077100e59
Created September 25, 2014 11:47
iOS向けライブラリ/アプリのテスト手法
@jiro
jiro / gist:9162487
Last active November 9, 2022 08:50
UICollectionView + UIKIt Dynamics ではじめるグラフ描画(発表メモ)
@jiro
jiro / gist:7626999
Created November 24, 2013 12:57
This script changes base urls of api for debbuging on iOS devices.
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
@jiro
jiro / gist:5989320
Created July 13, 2013 03:41
iOctocatから学ぶiOSアプリ開発手法 (発表メモ)
@jiro
jiro / gist:5069727
Last active December 14, 2015 10:09
AFIncrementalStoreの紹介(発表メモ)
@jiro
jiro / KVO_ForViewController.m
Created October 18, 2012 12:03
KVOの受信処理がメインスレッドで処理されるのを保証する ref: http://qiita.com/items/f7b10aac3ed515798d22
- (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;
}