pushViewController (code)


1
2
3
4
// pushViewController
        let storyboard = UIStoryboard(name: "Main", bundle: nil);
        let data2 = storyboard.instantiateViewController(withIdentifier: "ViewController_Data2"as! ViewController_Data2;
        self.navigationController?.pushViewController(data2, animated: true);
cs


storyboard instance 생성 후 pushViewController를 쓴다.

'Developer > Swift' 카테고리의 다른 글

동적 셀 높이 지정 (UITableView dynamic Height)  (0) 2018.05.23
Custom UIView 사용 (Dialog CustomView 적용)  (0) 2018.05.13
pushViewController (code)  (0) 2018.05.06
tableview 커스텀셀 (customcell)  (0) 2018.05.06
pageControl  (0) 2018.05.04
NavigationController / NavigationItem  (0) 2018.05.02

이 글을 공유하기


댓글(0)

Designed by CMSFactory.NET