2011-06-01 23 views

回答

4

UIBarButtonItem有一個名爲customView屬性,這是你在找什麼:

UISegmentedControl *control = (UISegmentedControl *) [segmentBarButton customView]; 
+0

感謝4的幫助。通常情況下,你忘記了基本的東西。 – 2011-06-01 11:29:58