-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UIViewController 애플 개발자 문서 #155
Labels
Comments
Managing the View
@IBAction func buttonTap(_ sender: Any) {
guard let c = self.storyboard?.instantiateViewController(withIdentifier: "YellowViewController") else {
return
}
c.modalPresentationStyle = .popover
if let popover = c.popoverPresentationController {
popover.sourceView = self.view
popover.permittedArrowDirections = UIPopoverArrowDirection.init(rawValue: 0)
popover.sourceRect = CGRect(x: self.view.bounds.width, y: self.view.bounds.height/2, width: 1, height: 1)
c.preferredContentSize = CGSize(width: 500, height: 400)
popover.delegate = self
}
self.present(c, animated: true)
}
func adaptivePresentationStyle(for controller: UIPresentationController) -> UIModalPresentationStyle {
return UIModalPresentationStyle.none
} |
Getting Other Related View Controllers
UIPresentationController란?
|
Presentation Controller - from to container completion cancel gesture |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
UIViewController
UIViewController
인스턴스를 직접적으로 다루는 것은 드문일이 될 것임.Subclassing Note
View Management
Handling View-Related Notifications
Handling View Rotations
관련 함수 간단 정리
Implementing a Container View Controller
Memory Management
didReceiveMemoryWarning
: 메모리에 경고 사항이 있을 때, 뷰 컨트롤러에게 보내는 메소드. 앱이 직접적으로 호출하지 않음.State Preservation and Restoration
The text was updated successfully, but these errors were encountered: