Question

Write a Xcode app which when the button Introduction is clicked with a mouse prints the text Hello! My name isin the debugg
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Below is the solution:

code: ViewController class

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view.
    }
    //button action
    @IBAction func btnInroduction(_ sender: Any) {
        print("Hello! My name is Nehal Khurshid.") //print will print the name and family name to the debug area
    }
  
}

sample output:

Add a comment
Know the answer?
Add Answer to:
Write a Xcode app which when the button Introduction is clicked with a mouse prints the text "Hello! My name is"in the debugging area. Instead of "..." write your first name, spac...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Hello, this is my code. moest of the things works but when select the price, i...

    Hello, this is my code. moest of the things works but when select the price, i just dont get my total. can someone help me out . thank you My queshion is also here The page will simulate the site for a Chicago-based small bus line that travels to St Louis, Milwaukee, and Detroit. Here are the requirements: The home page (i.e. the main page) should simply be the heading, image, and slogan of the site.  The home page should NOT...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT