MobileOrch
ちなみに第1回目は「Screencast
http://www
MobileOrch
ちなみに第1回目は「Screencast
http://www
via
メモメモ。アプリの雰囲気に合うようなstatusBarを設定できるとおしゃれですよね...
Info.plist
1 <key>UIStatusBarStyle</key> 2 <string>UIStatusBa rStyleBlac kOpaque</string>
iPhoneに限った話ではないのですが。メモ:
via
http://dis
CGRect rect = CGRectMake
(x,y,w,h);
NSValue *rectValue = [NSValue valueWithCGRect:rect ];
CGRect rect = [someNSValu
e CGRectValu e];
調べてわかったのですが、複数パラメータを持つメソッドのSELは作成できるのですが(下記)、UIButtonなどのtarget-act
-(void)methodWith
NoArgument s;
SEL noArgumentSelector = @selector(methodWith NoArgument s); -(void)methodWith
OneArgumen t:(id)argument;
SEL oneArgumentSelector = @selector(methodWith OneArgumen t:); // notice the colon here -(void)methodWIth
TwoArgumen ts:(id)argumentOn e and:(id)argumentTw o;
SEL twoArgumentSelector = @selector(methodWith TwoArgumen ts:and:); // notice the argument names are omitted
ちなみに、自分でSELのメソッドを呼び出すときには、パラメータを渡す事は可能:
-performSe
lector:
-performSelector:wit hObject:
-performSelector:wit hObject:wi thObject:
できないと言っても、if(sender == _myButton) {} とか sender.tag
How do SEL and @select work in iphone sdk?
http://sta
How to I pass @selector as a parameter?
http://sta
Help me understand
http://www
AppleのドキュメントのSelectors項
http://dev
Can't exec "xcodebuild
": No such file or directory at /opt/local /bin/scan- build line 830.
いつの間にかscan-build
scan-build
「xcodebuild
」は、Xcodeで作成されたプロジェクトをコンパイルするコマンドラインツールだ
http://slashdot.jp/~ hylom/jour nal/459704
で .zshrcに新しいxcodebuild
1 export PATH=/Developer3.1b2 /usr/bin:$PATH
するとscan-build
で、いつものようにscan-build
1 scan-buildxcodebuild 2 === BUILDING NATIVE TARGET ShoppingLi st OF PROJECT ShoppingLi st WITH THE DEFAULT CONFIGURAT ION (Release) === 3 4 Checking Dependenci es... 5 2009-08-05 06:00:35.0 63 xcodebuild [5232:10b] _XCDistrib utedBuildH ostInfoTas k encountere d an error: Error Domain=NSP OSIXErrorD omain Code=2 UserInfo=0 x36ebf70 "Operation could not be completed. No such file or directory" 6 error: There is no SDK with the name or path 'iphoneos2. 2' 7 ** BUILD FAILED **
引数なしでscan-build
scan-build
-k -V xcodebuild -configura tion Debug -sdk iphonesimu lor2.2.1
http://studiot.jp/bl og/?p=64
上を参考に-sdkオプションを適用してやると:
1 scan-buildxcodebuild -sdk iphoneos2. 2.1
大量のエラーぽいものを出しながらビルド成功+バグなし。
怪しいので3.0にしてみたらエラーも出なくて、ちゃんとバグを発見してくれました:
1 scan-buildxcodebuild -sdk iphoneos3. 0