Search results

  1. fukurou

    rumour booster redout 2

  2. fukurou

    🥐 pastry orange cake

    3 eggs-> separate foam whites, add baking powder add yellows gradually 1.5 cup flower, mix gradually add 1.5 cup orange juice add 2 cups oil bake in an oiled mold on 175 c degrees for bout 15 minutes
  3. fukurou

    XCode grimoire

    pancake view while the app is running you can see a 3d model of the layered activities click : drag the mouse to get the 3d pancake view :
  4. fukurou

    XCode grimoire

    segue // these are links between story boards (activities) and they enable //switching between them create a segue by control drag from one segue to another : choose present modally name the segue : the cocoa class code : import UIKit class ResultViewController: UIViewController {...
  5. fukurou

    XCode grimoire

    Cocoa Touch Class // these are used to build extra activities not programmatically file->new file->Cocoa Touch Class and place the class in the controller directory select an activity from the story board : from the identity inspector set the selected activity class name to that of the...
  6. fukurou

    XCode grimoire

    add a 2nd activity object library (the +), search view controller adding views programmatically (view controller in this example (2nd activity)) controller dir->Rclick->new file->(ios tab) swift file import UIKit class SecondViewController: UIViewController { // this is a 2nd...
  7. fukurou

    🐦swift swift grimoire

    classes playground for multiple swift files : file->new->project->macOS->command line tool adding a file : right click project folder->new file->swift file help->developer documentation class example with clone method (called copy in the swift language) : class Enemy{ var health : Int...
  8. fukurou

    🐦swift swift grimoire

    type conversion let temp = String(format: "%0.2f", sender.value)
  9. fukurou

    🐦swift swift grimoire

    round decimal to 2 decimal places : let temp = String(format: "%.2f", value)
  10. fukurou

    🐦swift swift grimoire

    mutating struct properties : struct Person { // define two properties var name = "" var age = 0 mutating func birthday(){ self.age += 1 } } // create instance of Person var person1 = Person() person1.birthday() print(person1.age)
  11. fukurou

    🐦swift Left side of mutating operator isn't mutable: 'self' is immutable

    struct Person { // define two properties var name = "" var age = 0 func birthday(){ age += 1 } } // create instance of Person var person1 = Person() birthday attempts to change the struct from within the struct so you need to add the prefix mutating : struct Person {...
  12. fukurou

    TNMT coming to Nintendo Switch on June 16, 2022

    yeah, I feel sorry for those who sold their nintendo switch 🍹 :kek:
  13. fukurou

    XCode grimoire

    MVC packaging R_click swift file->new group from selection->name the folder (model view or controler) set custom function parameter name : func greeter(msg message: String){ print(message) } greeter(msg: "hey") set custom func with no parameter name : func greeter(_ message...
  14. fukurou

    XCode grimoire

    setting view background color sender.backgroundColor = UIColor.green rest to clear : sender.backgroundColor = UIColor.clear
  15. fukurou

    XCode grimoire

    adding a swift file these files are where to store classes and structures file->new file (cmd + n)->swift file or right click the 1st dir in the project->new file
  16. fukurou

    🐦swift swift grimoire

    Struct vs. Class in Swift struct is pretty much a constant you can modify (with fields) 1 it gets passes as a value not as a reference 2 init is optional for struct 3 struct does have inheritance
  17. fukurou

    🐦swift swift grimoire

    struct // define a structure struct Person { // define two properties var name = "" var age = 0 } // create instance of Person var person1 = Person() // access properties and assign new values person1.age = 21 person1.name = "Rick" print("Name: \(person1.name) and Age: \( person1.age) ")
  18. fukurou

    🐦swift swift grimoire

    multi array 2d: var cinema = [[Int]]() or var cinema = Array(repeating: Array(repeating: 0, count: 5), count: 5) N-dimensional arrays var cinemas = [[[Int]]]() var cinemas = Array(repeating: Array(repeating: Array(repeating: 0, count: 5), count: 5), count: 3) cinemaRooms[1][2][3] = 1 // the...
Top