Upgrade to Pro — share decks privately, control downloads, hide ads and more …

UINavigationBarの隅々までタップしたい

 UINavigationBarの隅々までタップしたい

Yosuke Ishikawa

November 13, 2013
Tweet

More Decks by Yosuke Ishikawa

Other Decks in Technology

Transcript

  1. for (UIView *subview in barButtonItem.customView.subviews) { UIView *customView = barButtonItem.customView;

    CGRect convertedRect = [self convertRect:subview.frame fromView:customView]; ! if (CGRectContainsPoint(convertedRect, point)) { CGPoint convertedPoint = [self convertPoint:point toView:subview]; return [subview hitTest:convertedPoint withEvent:event]; } } ʢcustomView.subviews͔Βhit͢Δ΋ͷΛ୳͢ʣ
  2. ࢖͍ํ Class navigationBarClass = [ISInteractiveEdgesNavigationBar class]; Class toolbarClass = [UIToolbar

    class]; ! UINavigationController *navigationController = [[UINavigationController alloc] initWithNavigationBarClass:navigationBarClass toolbarClass:toolbarClass];