나는 removeFromSuperView 및 addSubview.the 코드를 사용하지 않고 UIView의 내용을 동적으로 변경하고 싶습니다. 원하는 코드입니다.UIView의 내용을 동적으로 변경할 수 있습니까?
int screenWidth = [[UIScreen mainScreen] bounds].size.width;
int screenHeight = [[UIScreen mainScreen]bounds].size.height;
UIView *currentView = [[UIView alloc]initWithFrame:CGRectMake(0,0,screenWidth,screenHeight)];
UIView *nextView = [[UIView alloc]initWithFrame:CGRectMake(0,0,screenWidth,screenHeight)];
[self.view addSubview:currentView];
currentView = nextView;
//when this code run,appearing currentView swap nextView.
[self.view reload];