Swift 2.0 1234567import UIKit var errorAlert = UIAlertView()errorAlert.title = "로그인 실패"errorAlert.message = "e-mail과 비밀번호를 다시 확인해 주세요."errorAlert.addButtonWithTitle("확인")errorAlert.show()Colored by Color Scriptercs Swift 3.012345678910111213141516171819 let alertController = UIAlertController(title: "평가하기", message: "보배드림 알림e에 대한 평가 또는 건의사항을 남겨주시면 더욱 발전된 알림e가 되겠습니다!!! 평가 부탁드립니다(꾸벅) 1분이면 충분합니다 ㅜㅜ..
1234567891011121314151617import UIKit @IBOutlet weak var mainImageView: UIImageView! override func viewDidLoad() { super.viewDidLoad() mainImageView.image = UIImage(named: "Image.jpg") mainImageView.userInteractionEnabled = true mainImageView.addGestureRecognizer(UITapGestureRecognizer(target: self, action: "buttonTapped:"))} func buttonTapped(sender: UITapGestureRecognizer) { if (sender.state =..
123456 import UIKit UIApplication.sharedApplication().beginIgnoringInteractionEvents()//터치 비활성화 UIApplication.sharedApplication().endIgnoringInteractionEvents()//터치 활성화 Colored by Color Scriptercs Swift 4.01234import UIKit UIApplication.shared.beginIgnoringInteractionEvents() UIApplication.shared.endIgnoringInteractionEvents()cs
123456789101112131415161718192021222324252627282930313233343536import Foundationimport UIKitimport MessageUI class MyPageViewController: UIViewController , MFMailComposeViewControllerDelegate{ @IBAction func sendMail(sender: AnyObject) { //메일 보내기 버튼 선택시 let mailComposeViewController = configuredMailComposeViewController() if MFMailComposeViewController.canSendMail() { self.presentViewController(..
123456789import UIKit class MyPageViewController: UIViewController { @IBAction func linkToSafari(sender: AnyObject) { UIApplication.sharedApplication().openURL(NSURL(string: "http://www.naver.com/")!) } }Colored by Color Scriptercs
- Total
- Today
- Yesterday