Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ストーリーボードなしでボタンを使用してビューを切り替える方法を知っている人はいますか?手伝ってくれてありがとう !(:
[myButton addTarget:self action:@selector(buttonClicked) forControlEvent:UIControlEventTouchUpInside];
次に、セレクター buttonClicked を実装します
-(void) buttonClicked { UIView* newView = [[UIView alloc]init] ; self.view = newView ; }