Skip to content

Instantly share code, notes, and snippets.

@misostack
Last active March 14, 2024 15:24
Show Gist options
  • Save misostack/62bdf6dd43411f4b25125141dc7846b1 to your computer and use it in GitHub Desktop.
Save misostack/62bdf6dd43411f4b25125141dc7846b1 to your computer and use it in GitHub Desktop.
IOS Developer Tutorial 2024

IOS Developer Tutorial 2024

Day 01

Apple Developer Ecosystem Tools:

image

  1. XCode

Swift Basic

  1. Variables

image

import Foundation

/* let use to define a variable that can't be assigned again */
let userA = "Garen"
let userB = "Yasuo"

var users = [userA, userB]

users.append("Ahri")
users.append("Renekton")

users

let foo = "Foo"
var foo2 = foo
foo2 = "Foo 2"
foo
foo2

/* Array in Swift just copies the value only */
let arrayString = ["a", "b"]
var anotherArr = arrayString
anotherArr.append("c")
anotherArr
arrayString

/* use NSMutableArray class to create reference style: it will create an object */
let oldArray = NSMutableArray(
    array: [
        "a",
        "b"
    ]
)

oldArray.add("c")

var newArray = oldArray
newArray.add("d")
oldArray

func changeTheArray(_ array: NSArray) {
    let cpArr = array as! NSMutableArray
    cpArr.add("e")
}

changeTheArray(oldArray)
oldArray
@misostack
Copy link
Author

@misostack
Copy link
Author

image

@misostack
Copy link
Author

Important notes, you have to worry about when develop an app on smart phone:

  1. The battery is not much
  2. Smart phone has weak gpu than PC/Laptop
  3. Sometime user get phone call while using app -> what should we do with their data?
    ...

@misostack
Copy link
Author

How's it made

  1. Validate your idea
  2. Design
  3. Development
  4. Test
  5. Publish
  6. Market
  7. Update

@misostack
Copy link
Author

Screenshot on MACOS

image

@misostack
Copy link
Author

Tools

Funny store

I'm rich app ( just a ruby background image )

image

@misostack
Copy link
Author

@misostack
Copy link
Author

Color Hunt: https://colorhunt.co/

@misostack
Copy link
Author

@misostack
Copy link
Author

image

@misostack
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment