2010-10-01から1ヶ月間の記事一覧
自動でリサイズして名前を付けるシェルスクリプト書いた。 ImageMagic必須。icon.sh #!/bin/sh convert -resize 57x57 $1 Icon.png convert -resize 72x72 $1 Icon-72.png convert -resize 114x114 $1 Icon@2x.png convert -resize 29x29 $1 Icon-Small.png …
CGFloat height = self.navigationController.navigationBar.frame.size.height;
if ([delegate respondsToSelector:selector]) { [delegate performSelector:selector withObject:eventList]; }
NSDate *begin = [NSDate new]; /* なんかの処理。 */ NSLog(@"%f", [[NSDate new] timeIntervalSinceDate:begin]);
if ([[NSThread currentThread] isMainThread]) { NSLog(@"main"); } else { NSLog(@"not main"); }
256色にする。 ./configure --enable-colors256