8. 1. 反応する領域を定義
UIBezierPath
+ (UIBezierPath *)bezierPathWithOvalInRect:(CGRect)rect
Creates and returns a new UIBezierPath object initialized with
an oval path inscribed in the specified rectangle.
12年8月25日土曜日
9. 2. タップした位置が定義した領域に入っ
ているか判定
UIBezierPath
- (BOOL)containsPoint:(CGPoint)point
Returns a Boolean value indicating whether the area enclosed
by the receiver contains the specified point.
12年8月25日土曜日
10. 3. タップイベント受け入れ
UIView
- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event
Returns the farthest descendant of the receiver in the view
hierarchy (including itself) that contains a specified point.
12年8月25日土曜日