일부 단추를 겹치기를 원하는 그래프보기가 있습니다. 그래프를 추가 한 후 단추로 펜촉을 만들고 하위보기로 추가하면 단추가 흰색 화면 위에 표시됩니다.iOS에서 하위보기를 어떻게 스택합니까?
GraphViewController *graphViewController = [[GraphViewController alloc] init];
[self.view addSubview:graphViewController.view];
GraphButtonViewController *graphButtonViewController = [[GraphButtonViewController alloc] initWithNibName:@"GraphButtonView" bundle:nil];
[self.view addSubview:graphButtonViewController.view];
그래서 GraphButtonView는 버튼을 유지합니까? 그리고 "GraphButton"은 "GraphView"안에있을 것입니까? 그렇다면 GraphButtonViewController.view를 그래프보기의 하위보기로 추가하면됩니다. [graphViewController.view addSubview : graphButtonViewController.view]; –