Cocoa(iOS)はMVVC(Model-View-ViewController)パターンである。by me, 2011
ここで述べるターゲットはiOS5, Lion以降, ARC
Cocoa(iOS)はMVVC(Model-View-ViewController)パターンである。by me, 2011
ここで述べるターゲットはiOS5, Lion以降, ARC
基本はコーディングガイドラインに沿う。
つまり、親クラス: コーディングガイドライン
see also.
オレオレUIViewControllerコーディングガイドライン オレオレUIViewコーディングガイドライン
ここで述べるターゲットはiOS5, Lion以降, ARC
* brew install libtiff | |
* brew install gtk+ | |
** gtk+のインストールに失敗するときは、 https://twitter.com/novi_/status/81740297842868225 | |
** /usr/local/lib/libintl.dylibが無いときは、 https://twitter.com/novi_/status/81742895941558272 | |
* gem install origami gtk2 | |
* mkdir -p ~/.local/share | |
** pdfwalkerが起動しないとkは、 /Library/Ruby/Gems/1.8/gems/origami-1.0.3/bin/pdfwalker:3 RUBY_VERSION を1.8以上にする |
-(void)testRect | |
{ | |
CGRect r = CGRectMake(1.222, 1.3333, 1, 1.000); | |
NSLog(@"%@", NSStringFromCGRect(r)); | |
NSLog(@"%@", NSStringFromCGRect(CGRectIntegral(r))); | |
NSLog(@"%@", NSStringFromCGRect(CGRectMake(floorf(r.origin.x), floorf(r.origin.y), floorf(r.size.width), floorf(r.size.height)))); | |
NSLog(@"%@", NSStringFromCGRect(CGRectMake(ceilf(r.origin.x), ceilf(r.origin.y), ceilf(r.size.width), ceilf(r.size.height)))); | |
STAssertTrue(CGRectEqualToRect(r, CGRectIntegral(r)), nil, nil); | |
} |
typedef void* StringRef; | |
StringRef StringCreateWithCString(const char* cstr); // Stringを作成 | |
StringRef StringCreateFromFile(const char* path); // ファイルから作成 | |
int StringGetLength(StringRef str); // 文字列の長さを取得 | |
float StringGetFloat(StringRef str); // 文字列から数値に変換 | |
int StringGetInt(StringRef str); |
UIKit (architecture armv6): | |
Contents of (__DATA,__objc_classlist) section | |
0048edf4 0x4f5cb0 | |
isa 0x4f5c9c | |
superclass 0x4f6020 | |
cache 0x0 | |
vtable 0x0 | |
data 0x490274 (struct class_ro_t *) | |
flags 0x0 | |
instanceStart 44 |
-[UIBezierPath stroke]: | |
000f1470 e92d40b0 push {r4, r5, r7, lr} | |
000f1474 e28d7008 add r7, sp, #8 @ 0x8 | |
000f1478 e1a05000 mov r5, r0 | |
000f147c ebfcb22d bl _UIGraphicsGetCurrentContext | |
000f1480 e1a04000 mov r4, r0 | |
000f1484 eb0bce73 bl 0x3e4e58 @ symbol stub for: _CGContextSaveGState | |
000f1488 e59f30c8 ldr r3, [pc, #200] @ 0xf1558 | |
000f148c e1a00004 mov r0, r4 | |
000f1490 e79f1003 ldr r1, [pc, r3] |