Profile Photo
//An error appears in the code. I'm an aspiring developer. Learn. The application uses UITextField to enter the minimum and maximum range of numbers. Then a random number from this range should be written to the Label.   import UIKit import GameplayKit   class ViewController: UIViewController {       @IBOutlet weak var labelResult: UILabel!… (Show more)
in Teaching app development
Profile Photo
I have  MacBook Pro (13-inch, Early 2011) macos sierra 10.13.6 and i wanna know that, Can I make an app with this device for latest version of ios like ios 12 ?
in Teaching app development
Profile Photo
I am working on the guided project in Chapter 4 of  App Developement with Swift.  I have entered the following code from the tutorial:       override func viewDidLoad() {         super.viewDidLoad()            if let savedToDos =  ToDo.loadToDos() {             todos = savedToDos         } else {             todo = ToDo.loadSampleToDos()… (Show more)
in Teaching app development
Profile Photo
Apple has released a new book on learning to programming - AP® Computer Science Principles with Swift.   What do you think about it?
in Teaching app development
Profile Photo
Hi everyone,   I try to pass data from View Controller through Tab Bar Controller and Navigation Controller to Table View Controller. Screenshot of storyboard is bellow.   https://drive.google.com/open?id=1GW6gaDxfK1zaEOk2aPE8izkS5B67ldZL   My code is next:   1. Send data from View Controller   @IBAction func addToCarButton(_ sender: UIButton)… (Show more)
in Swift
Profile Photo
For some reason, the value is lost when I try to transfer it from ViewController to TableViewController. The scheme seems to be simple, the value is taken from the first TVC (such as a warehouse) and transmitted to the VC (details), and from there to the order basket or cart - to the second TVC. And when I try to pass data to the cart, it pass… (Show more)
in Interface Builder
Profile Photo
I am following a course and am trying so test myself. I have a model and I give values to properties from a json-file. (If Im showing code wrong please tell me how I shoud do it)   This works: func updateUIWithWeatherData() {                cityLabel.text = weatherDataModel.city         temperatureLabel.text =… (Show more)
in Swift
Profile Photo
(1, "zebra") < (2, "apple") // true because 1 is less than 2; "zebra" and "apple" are not compared (3, "apple") < (3, "bird") // true because 3 is equal to 3, and "apple" is less than "bird" (4, "dog") == (4, "dog") // true because 4 is equal to 4, and "dog" is equal to "dog"   In the example above, you can see the left-to-right comparison… (Show more)
in Swift
Profile Photo
Hi, I study Augmented Reality and have some questions. On page 459 author of this textbook say to add a new node with next code:   let node = SCNNode() node.position = SCNVector3(0.0, 0.2, 0.0)  Please tell me where, in what place, I should to insert this code? Into viewDidLoad method or other?
in Teaching app development
Profile Photo
Hello,   I am trying to use self.dismiss funtion for my app. From the menu button,  when clicked on an option, the app goes to new View Controller but from there when I try to close the VC and return to my homeVC using self.dismiss. I am getting an exception. The part of my code is this:       @IBAction func dismissPresssed(_ sender: Any) {… (Show more)
in Teaching app development
Profile Photo
how to access default value of a core data entity? For example, I have created an entity called Progress which has three attributes; id, project and week. In case my attribute list is empty, I want to fetch the default value. How can I do that?
in Teaching app development
Load more items