Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged Swift

0 votes
1.0k views
1 answer
    Using SwiftUI, I've built a NavigationView that takes the user to another NavigationView, and finally, to a simple ... know how to solve this? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.6k views
1 answer
    Just downloaded the new xCode 10.0 and saw that the old statusBarStyle has been deprecated since iOS 9.0. Warning: ... // Set to default } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
980 views
1 answer
    In a ViewController, which I presented modally, I did this: override func prefersStatusBarHidden() -> Bool { ... for this view controller? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.5k views
1 answer
    When I'm declaring variables as weak in Swift, I sometimes get the error message from Xcode: 'weak' may only ... What is the reason behind it? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
956 views
1 answer
    I have in iOS8 a table view like this: tableView = UITableView(frame: view.bounds, style: .Plain) view.addSubview( ... , but it does not work. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
768 views
1 answer
    I have an UIViewController, I want to disable or enable rotation of the screen in different scenarios Example: if flag { ... How can I do that? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
913 views
1 answer
    I see that in iOS 9 setStatusBarHidden(_:withAnimation:) is now deprecated and the documentation says to use [ ... bar with a slide animation? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.9k views
1 answer
    I have an array and I want to iterate through it initialize views based on array value, and want to perform ... for this? Thanks in advance. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
953 views
1 answer
    I'm working in swift on Xcode and by default it creates a test file that references XCTest. When I set ... properly and everything works fine. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
809 views
1 answer
    I've spent the better part of a workday trying to solve this. Background I have a simple core data ... description of a resonable workaround. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
854 views
1 answer
    I am trying to add a Today Extension in Swift to my Objective-C app. I keep getting this ... completionHandler(NCUpdateResult.NewData) } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
811 views
1 answer
    What I am Trying to Do: Parent View that is managed by Parent View Controller SHOULD NOT ROTATE. Child View ... to achieve this behavior.... See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    How is it possible to implement a vertical plane detection (i.e. for walls)? let configuration = ... = .horizontal //TODO See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
979 views
1 answer
    Could you guys help me to translate the following code into Swift? [[UIApplication sharedApplication] openURL:[NSURL ... ?) Thanks in advance! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    How do I round up currentRatio to two decimal places? let currentRatio = Double (rxCurrentTextField.text!)! / ... text! = "(currentRatio)" See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    i have used simple listing of data using List. I would like to add pull down to refresh functionality but i am not ... (Text("Featured")) } } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
717 views
1 answer
    I'm trying to incorporate UI tests in my iOS project, but one thing that continues to hold me up is ... philosophy behind UI tests completely? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
933 views
1 answer
    I'm loading a tableView from a plist file. This works with no problems. I just simply want to "tick" the selected rows ... )!") //PPP } } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
847 views
1 answer
    I'm quite new to the SwiftUI framework and I haven't wrapped my head around all of it yet so please bear ... be appreciated. Thanks in advance! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    var timeReminder = Date() let dateFormReminder = DateFormatter() dateFormReminder.calendar = Calendar.current dateFormReminder. ... 12:00 +0000 See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
771 views
1 answer
    I wrote some code to perform run length encoding and decoding. I have my encoding function as a method in an extension ... count: $0.count)} } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
736 views
1 answer
    Error: Cannot convert the expression type (String, MyType) to () From the following code Test(method: {[weak self] ... ) { println(message) } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
979 views
1 answer
    I'm grinding through Apple's App Development with Swift book and I have been having a few issues with the ... there a more elegant solution? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    How can I block scroll down and only allow scroll up in order to avoid seeing the white space over the rectangle on top ... ) Spacer() } } } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
924 views
1 answer
    I did all of the SDK stuff that firebase told me to do like added their plist file and doing stuff in my ... repoArray } } Thank you :) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
679 views
1 answer
    I'm looking for an easy way to query my database in firebase using swift to retrieve a random object. ... preferably. My Database structure: See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    I am using the new UISearchController with searchbar inside tableview header.Everything works fine in ... searchController = searchController See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
711 views
1 answer
    I want to assign the data I have read in the Firebase database to the values I have given in the ... , deviceRoom3, deviceRoom4, deviceRoom5] See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...