599 questions
let action=UIAlertController(title: OK, message: .default) {(_)inWhen I write, I get the error Type 'String?' has no member 'default' Why do I get this error?How can I fix the error?
In Swift 2.0, how do I change the weight of the font with the code?It's easy to change on the Storyboard, but for various reasons I had to do it with the code.There is no problem functionally without ...
The UI part (IBOutlet) linked from the StoryBoard will be of the ImplicitlyUnwrappedOptionsal type, but will it not become nil after the linked class is instantiated?Migrating from Objective-C to Swif...
I use iOS Swift to create a video save process.I can now save videos, but when I check the video taken with the iPhone facing up with the camera roll, it is facing sideways.To avoid this, we found tha...
The operation couldn't be completed. (LaunchServicesError 0.) When I try to run the simulator, it comes out.I tried rebooting the Mac, resetting and rebooting the simulator, rebooting the Xcode, and c...
I am re-learning from Swift playground.I'm stuck with the title Let's Learn Code 3I found out the answer online, but I didn't know why it was correct.In particular, I do not understand the last for lo...
·Language: Swift·Bluetooth device used: Texas Instruments CC2541 SensorTagSorry for the beginner's question.This is my first time to ask you a question, so I would appreciate it if you could let me kn...
When setting up the path, the error similar to the comment in the code below appears.I don't know the cause, so if anyone knows, please let me know.import UIKitclassViewController:UIViewController { l...
When describing a method name in a natural language sentence, I think I wrote it like + [Foo bar] or - [Foo baz:qux:] in Objective-C, but how do you usually write it in Swift?
import UIKitimport CoreLocationimport MapKitclassViewController:UIViewController, CLLocationManagerDelegate, MKMapViewDelegate{ @IBOutlet weak var theMap:MKMapView! // @IBOutlet weak var theLabel:UILa...
« | - 43 - | » |
© 2024 OneMinuteCode. All rights reserved.