top of page

Use Swift to build a simple iOS App

  • Writer: Eighplus Admin
    Eighplus Admin
  • Mar 12, 2022
  • 1 min read

1. Open xcode, pick ios app template. Pick a phone model that you like.

2. In View controller file, add view.BackgroundColor = .systemPink under the override function. It will change the background to pink. return getphoto will provide a placeholder for the image.

3. Add a private imageView, make a placeholder to hold the picture. Center the image.

4. Add a getphoto function to hold our logo. imageView.image = UIImage(named: "FUNTERN")

5. In viewcontroller of the main.stroyboard, click label from the library in the upper right corner. You can add the text that you'd like.

6. Add your logo under asset.xcassets so that it can be picked up by function getphoto.


FUNTERN Associate: Chenxi Wang

Comments


bottom of page