¡@

Home 

2014/10/15 ¤U¤È 10:12:49

iphone Programming Glossary: portraitviewarray

How to use a common target object to handle actions/outlets of multiple views?

http://stackoverflow.com/questions/6950674/how-to-use-a-common-target-object-to-handle-actions-outlets-of-multiple-views

app. It seems like a very MVC way to do things. The problem comes in loadView of the view controller when I do NSArray portraitViewArray NSBundle mainBundle loadNibNamed @ Weekview_iPad_Portrait owner self options nil portraitWeekView portraitViewArray objectAtIndex.. portraitViewArray NSBundle mainBundle loadNibNamed @ Weekview_iPad_Portrait owner self options nil portraitWeekView portraitViewArray objectAtIndex 0 NSArray landscapeViewArray NSBundle mainBundle loadNibNamed @ Weekview_iPad_Landscape owner self options.. objectAtIndex 0 this object is intended to be a common target for portrait and landscape arrays. weekViewTarget portraitViewArray objectAtIndex 1 UIInterfaceOrientation interfaceOrientation self.interfaceOrientation if interfaceOrientation UIInterfaceOrientationPortrait..