一个在xib中使用多个时间的视图

时间:2016-02-16 05:09:42

标签: ios objective-c uiview xib

我想在我的脑海里做一个非常简单的事情但是当我试图创作时真的很复杂。在使用XIB环境的iPhone应用程序中,我想创建一个视图

enter image description here

并在我的保持视图控制器中使用多个时间是

enter image description here

enter image description here

如何在我的视图控制器中使用此视图

1 个答案:

答案 0 :(得分:0)

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

UIView *viewOfferDisc = (UIView *)copyOfView;

viewOfferDisc.frame = CGRectMake(XAXIS, YAXIS, WIDTH, HEIGHT);
相关问题