saitama beginner tips50

60
これから開発はじめる人向け Tips50 @tmokita 12630日土曜日

Upload: tomohiko-okita

Post on 18-Jan-2015

2.100 views

Category:

Documents


6 download

DESCRIPTION

2012/06/30さいたま勉強会で発表したスライドです

TRANSCRIPT

Page 1: Saitama beginner tips50

これから開発はじめる人向けTips50@tmokita

12年6月30日土曜日

Page 2: Saitama beginner tips50

•自己紹介

12年6月30日土曜日

Page 3: Saitama beginner tips50

•沖田知彦@tmokita

•(株)フォーユー

•プログラマ募集中

12年6月30日土曜日

Page 4: Saitama beginner tips50

•関わったアプリ

12年6月30日土曜日

Page 5: Saitama beginner tips50

•NDA!NDA!

12年6月30日土曜日

Page 6: Saitama beginner tips50

• 思いつくままに書いていったので気になったところはメモするなり呟くなりなんなりしてください。

12年6月30日土曜日

Page 7: Saitama beginner tips50

• あくまでもこれは「自分流」の方法ですので他にも良い方法や「自分はこうやってるよー」というのがある場合はツッコんでくれるとうれしいです。

12年6月30日土曜日

Page 8: Saitama beginner tips50

•NSLogを無効にする

•#define NSLog(...)

12年6月30日土曜日

Page 9: Saitama beginner tips50

•NSLogで関数名を出力する

•NSLog("%s", __func__);

12年6月30日土曜日

Page 10: Saitama beginner tips50

•コンパイルの時点でエラーやワーニングを出したい

•#error #warning を使う

12年6月30日土曜日

Page 11: Saitama beginner tips50

•CGRectを文字列にする

•NSStringFromCGRect

12年6月30日土曜日

Page 12: Saitama beginner tips50

•文字列からCGRectを作る

•CGRectFromNSString

12年6月30日土曜日

Page 13: Saitama beginner tips50

•ObjectをNSDataにする

•[NSKeyedArchiver archivedDataWithRootObject:object];

12年6月30日土曜日

Page 14: Saitama beginner tips50

•NSDataからObjectにする

•[NSKeyedUnarchiver unarchiveObjectWithData:data]

12年6月30日土曜日

Page 15: Saitama beginner tips50

•全てのクラスから共通のデータを使いたい

•シングルトンを使う

12年6月30日土曜日

Page 16: Saitama beginner tips50

•非同期で通信結果を受け取る

•NSNotificationCenter

•シングルトンクラスとあわせてつかう

12年6月30日土曜日

Page 17: Saitama beginner tips50

•Retina/非Retinaによって描画速度が変わらないようにする

•UIViewのアニメーションview.Transformを使う

12年6月30日土曜日

Page 18: Saitama beginner tips50

•iOS5以前でオリジナルのタブバーを作る

•TabBarにViewを被せてTabBarContollerのメソッドを呼ぶ

12年6月30日土曜日

Page 19: Saitama beginner tips50

•releaseとかを出来るだけ考えたくない

• @property(nonatomic,retain)

• xxx.obj = [[[AAA alloc] init] autorelease];

• xxx.obj = nil;

12年6月30日土曜日

Page 20: Saitama beginner tips50

•delegateとして使うオブジェクト

•@property(nonatomic,assign)

•循環参照を防ぐため12年6月30日土曜日

Page 21: Saitama beginner tips50

•WebViewの大きさを知りたい

•WebView.scrollView.contentSize (iOS5)

12年6月30日土曜日

Page 22: Saitama beginner tips50

•縦横でレイアウトが違うViewを使う

•Viewを二種類用意してWillRoatteで切り替える

12年6月30日土曜日

Page 23: Saitama beginner tips50

•定形文字列から数字などを抜き取る

•C の sscanf

12年6月30日土曜日

Page 24: Saitama beginner tips50

•自前でカメラロールのサムネイル画面をつくる

• AssetsLibrary

• TableViewの1セルに4つImageViewを入れる

12年6月30日土曜日

Page 25: Saitama beginner tips50

•複数のAlertViewを一つのDelegateで判別する

•tagを使う

12年6月30日土曜日

Page 26: Saitama beginner tips50

•OAuth関連の通信処理をしたい

•OAuthComsumer

12年6月30日土曜日

Page 27: Saitama beginner tips50

•Facebookと連携させたい

•FacebookSDK

12年6月30日土曜日

Page 28: Saitama beginner tips50

•Flickrと連携させたい

•ObjectiveFlckr

12年6月30日土曜日

Page 29: Saitama beginner tips50

•便利な通信系のラッパー

•ASIHTTPRequest

12年6月30日土曜日

Page 30: Saitama beginner tips50

•JSONを使いたい

•SBJSON

12年6月30日土曜日

Page 31: Saitama beginner tips50

•2Dゲームを作りたい

•Cocos2D

12年6月30日土曜日

Page 32: Saitama beginner tips50

•サウンド処理をしたい

•AudioToolBox

12年6月30日土曜日

Page 33: Saitama beginner tips50

•サウンド処理をしたい(2)

•CocosDenshion

12年6月30日土曜日

Page 34: Saitama beginner tips50

•SQLiteを簡単に使いたい

•FMDB

12年6月30日土曜日

Page 35: Saitama beginner tips50

•通信状況を知りたい

•ReachAbility

12年6月30日土曜日

Page 36: Saitama beginner tips50

•非同期で画像をダウンロード

•ImageStore

12年6月30日土曜日

Page 37: Saitama beginner tips50

•シミュレータで通信速度制限

•NetworkLinkConditoner

12年6月30日土曜日

Page 38: Saitama beginner tips50

•CSVをPLISTにする

•DataFileConverter(MacAppStore)

12年6月30日土曜日

Page 39: Saitama beginner tips50

•delegateメソッドを書く時

•xcodeのスニペットに登録しておく

12年6月30日土曜日

Page 40: Saitama beginner tips50

•GitのGUIクライアント

•Tower

12年6月30日土曜日

Page 41: Saitama beginner tips50

•SVNのGUIクライアント

•Versions

12年6月30日土曜日

Page 42: Saitama beginner tips50

•テスト用データにURLでアクセス

•DropBox

12年6月30日土曜日

Page 43: Saitama beginner tips50

•ベータ版を簡単に大勢に配布する

•TestFlight

12年6月30日土曜日

Page 44: Saitama beginner tips50

•SQLiteのデータ確認

•Lita

12年6月30日土曜日

Page 45: Saitama beginner tips50

•自前カメラを作りたい

•AVFoundation、AVCapture

12年6月30日土曜日

Page 46: Saitama beginner tips50

•アプリの動画を撮りたい

•Reflection

12年6月30日土曜日

Page 47: Saitama beginner tips50

•シミュレータのデータを取りたい

•~/Library/Application Support/iPhone Simulator

12年6月30日土曜日

Page 48: Saitama beginner tips50

•Unityで加速度センサーを使いたい

•UnityRemote

12年6月30日土曜日

Page 49: Saitama beginner tips50

•共通して参照できるデータ保存場所

• [[UIApplication sharedApplication] delegate]

12年6月30日土曜日

Page 50: Saitama beginner tips50

•確立が一定な乱数

•NSArrayに予め入れておく

12年6月30日土曜日

Page 51: Saitama beginner tips50

•簡単写真拡大View

• UIScrollViewにImageViewを突っ込む

12年6月30日土曜日

Page 52: Saitama beginner tips50

•TableViewCellのカスタマイズ

• Cell.AccessoryViewにはSwitchとか入れられる

12年6月30日土曜日

Page 53: Saitama beginner tips50

•多言語対応

•NSLocalizedString

12年6月30日土曜日

Page 54: Saitama beginner tips50

•UITextViewでリンクを張る

•dataDetectorTypes

12年6月30日土曜日

Page 55: Saitama beginner tips50

•Pushをつかいたい

• Pushのサーバーを提供しているサービスをつかうUrbanairship, Parse ...

12年6月30日土曜日

Page 56: Saitama beginner tips50

•引っ張って更新• EGORefreshTableHeaderView

12年6月30日土曜日

Page 57: Saitama beginner tips50

•さいごに

•恥ずかしがらずに聞く

12年6月30日土曜日

Page 58: Saitama beginner tips50

• iOS4プログラミングブック

• iOS5プログラミングブック

• オススメ!(by Seasons)

12年6月30日土曜日

Page 59: Saitama beginner tips50

• ARC使え(by @akisutesama)

12年6月30日土曜日

Page 60: Saitama beginner tips50

•ありがとうございました

12年6月30日土曜日