2013年7月31日 星期三

用程式抓取Xib(loading Xib programmatically)

if (iPad) {
            self.businessView = [[[NSBundle mainBundle] loadNibNamed:@"BusinessCardView~ipad" owner:self.view options:nil] objectAtIndex:0] ;
        }else{
            self.businessView = [[[NSBundle mainBundle] loadNibNamed:@"BusinessCardView" owner:self.view options:nil] objectAtIndex:0] ;
        }

沒有留言:

張貼留言