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

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

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.

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

Avatar for Yosuke Ishikawa

Yosuke Ishikawa

November 13, 2013

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];