2013-05-21から1日間の記事一覧

画面のタッチ位置の取得

iOS

画面をポンとタッチしたときの座標値を表示する。 (参考: http://www.happytrap.jp/blogs/2012/01/24/7099/) - (void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { CGPoint p = [[touches anyObject] locationInView:self.view]; float tap…