self.present viewcontroller with popupstyle


1
2
3
4
5
6
7
// 모달창으로 ViewController 실행 (팝업 형태)
let storyboard = UIStoryboard(name: "Main", bundle: nil)
let myAlert : ViewController_favoriteItemAdd = storyboard.instantiateViewController(withIdentifier: "ViewController_favoriteItemAdd"as! ViewController_favoriteItemAdd
myAlert.modalPresentationStyle = UIModalPresentationStyle.overCurrentContext
myAlert.modalTransitionStyle = UIModalTransitionStyle.crossDissolve
myAlert.delegate = self
self.present(myAlert, animated: true, completion: nil)
cs


이 글을 공유하기


댓글(0)

Designed by CMSFactory.NET