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
123456789101112131415161718192021222324252627 func createButton () { let button = UIButton(); button.setTitle("Back", forState: .Normal) button.setTitleColor(UIColor.blueColor(), forState: .Normal) button.frame = CGRectMake(25, 25, 35, 30) // X, Y, width, height button.addTarget(self, action: "buttonPressed:", forControlEvents: .TouchUpInside) button.backgroundColor = UIColor(red: (31/255.0), gr..
- Total
- Today
- Yesterday