Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
UINavigationBarの隅々までタップしたい
Search
Yosuke Ishikawa
November 13, 2013
Technology
2
11k
UINavigationBarの隅々までタップしたい
2013/11/13 potatotips
https://github.com/potatotips/potatotips/wiki/potatotips-1
Yosuke Ishikawa
November 13, 2013
Tweet
Share
More Decks by Yosuke Ishikawa
See All by Yosuke Ishikawa
Achieving Testability in Presentation Layer
ishkawa
4
3.4k
Introducing Wire: Dependency Injection by Code Generator
ishkawa
12
1.1k
Declarative UICollectionView
ishkawa
28
7.6k
Nuxt.jsが掲げる"Universal Vue.js Applications"とは何者か
ishkawa
10
2.6k
Static Dependency Injection by Code Generation
ishkawa
15
6k
実践クライアントサイドSwift
ishkawa
24
3.9k
JSON-RPC on APIKit
ishkawa
5
49k
RxSwiftは開発をどう変えたか?
ishkawa
12
3.6k
Swift + JSON-RPC
ishkawa
0
47k
Other Decks in Technology
See All in Technology
AOAI Dev Day - Opening Session
yoshidashingo
2
460
OSSコミットしてZennの課題を解決した話
dyoshikawa1993
0
150
[I/O Extended Android 2024] What`s new in Android 2024
kyeongwan
0
220
データベース研修 DB基礎【MIXI 24新卒技術研修】
mixi_engineers
PRO
0
210
データ分析基盤を作ってみよう~設計編~
nrinetcom
PRO
1
110
ACRiルーム最新情報とAMD GPUサーバーのご紹介
anjn
0
150
20240717_イケコパ代表Copilot_in_Teams会社でこう使ってます
ponponmikankan
2
430
Azure AI ことはじめ
tsubakimoto_s
0
130
スタートアップにおける組織設計とスクラムの長期戦略 / Scrum Fest Kanazawa 2024
yoshikiiida
13
3.6k
Git 研修 Basic【MIXI 24新卒技術研修】
mixi_engineers
PRO
0
310
JBUG岡山 #6 WordCamp男木島の チームビルディング
takeshifurusato
0
150
データ分析を支える技術 生成AI再入門
ishikawa_satoru
0
380
Featured
See All Featured
Building an army of robots
kneath
301
42k
Mobile First: as difficult as doing things right
swwweet
219
8.8k
In The Pink: A Labor of Love
frogandcode
139
22k
Design by the Numbers
sachag
277
18k
Documentation Writing (for coders)
carmenintech
63
4.2k
Bash Introduction
62gerente
607
210k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
13
430
How to name files
jennybc
67
96k
The Language of Interfaces
destraynor
151
23k
The Power of CSS Pseudo Elements
geoffreycrofte
64
5.2k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
36
9.1k
Clear Off the Table
cherdarchuk
89
320k
Transcript
UINavigationBarͷ ۱ʑ·Ͱλοϓ͍ͨ͠ @_ishkawa
None
GHFeed
ຊ
Custom View λοϓ͍ͨ͠ͱ͜Ζ
͔ͯ͠͠ɿ ✗ Tips ✓ όουϊϋ
ΞΠσΟΞ ✓ UINavigationBarͷhitTest:withEvent:Λվ
hitTest:withEvent: leftBarButtonItem.customView
hitTest:withEvent: navigationBar
͜ͷͱ͖
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͢ΔͷΛ୳͢ʣ
ͬͯΔͱ
ίίʹϘλϯ͕͋ͬͯԠͰ͖Δʂ
ҰԠϥΠϒϥϦʹ͠·ͨ͠
ISInteractiveEdgesNavigationBar https://github.com/ishkawa/ISInteractiveEdgesNavigationBar
͍ํ Class navigationBarClass = [ISInteractiveEdgesNavigationBar class]; Class toolbarClass = [UIToolbar
class]; ! UINavigationController *navigationController = [[UINavigationController alloc] initWithNavigationBarClass:navigationBarClass toolbarClass:toolbarClass];
pod ‘ISInteractiveEdgesNavigationBar‘, ‘~> 0.0.2’