2016-02-16 63 views
0

我想在我的腦海裏創建一個非常簡單但在我嘗試創建時非常複雜的視圖。在使用XIB環境在一個iPhone應用程序,我想創建一個視圖是在xib中使用多個時間的一個視圖

enter image description here

,並使用多的時間,我保持視圖控制器是

enter image description here

enter image description here

如何在我的視圖控制器中使用這個視圖

回答

0
id copyOfView = [NSKeyedUnarchiver unarchiveObjectWithData:[NSKeyedArchiver archivedDataWithRootObject:viewOffer]]; 

UIView *viewOfferDisc = (UIView *)copyOfView; 

viewOfferDisc.frame = CGRectMake(XAXIS, YAXIS, WIDTH, HEIGHT); 
相關問題