Search results

  1. fukurou

    🎮gaming nintendo switch megathread

    arcade hori joystick
  2. fukurou

    🎮gaming nintendo switch megathread

    NINTENDO SWITCH: How to connect a wireless controller
  3. fukurou

    🎮gaming nintendo switch megathread

    transfer user from old to new switch
  4. fukurou

    🐦swift swift grimoire

    optionals crate a new Xcode project->macOS tab-> command line optional binding let myOptional:String? = "hadoken" // transform optional to actual variable (optional binding) if let safeOptional = myOptional { let text:String = safeOptional print(text) } nil coalescing operator : let...
  5. fukurou

    rumour booster redout 2

  6. 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 :
  7. 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 {...
  8. 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...
  9. 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...
  10. 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...
  11. fukurou

    🐦swift swift grimoire

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

    🐦swift swift grimoire

    round decimal to 2 decimal places : let temp = String(format: "%.2f", value)
  13. 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)
  14. 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 {...
  15. fukurou

    TNMT coming to Nintendo Switch on June 16, 2022

    yeah, I feel sorry for those who sold their nintendo switch 🍹 :kek:
  16. 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...
  17. fukurou

    XCode grimoire

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