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
726 views
1 answer
    I am trying to load a username form a Firebase which is than supposed to be set in an Object. But ... : nameModel, decorationAttributes: nil)) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
798 views
1 answer
    I am trying to send images in push notifications I have made the notifications registrations in app delegate ... image in push notifications See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
647 views
1 answer
    I'm trying to check to see if an array of arrays contains an array of Strings. My error message says: "Cannot find ... exp1) } What's going on!? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
884 views
1 answer
    First of all, Sorry for unclear title of question I'm making a codable struct which will be used as json ... smart way to deal with this. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
722 views
1 answer
    func squareArea(side:Double) -> Double { return side ^ 2 } I get the error: could not find an overload for ... fine. What is the correct syntax? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
730 views
1 answer
    In Swift 3, what exactly is the difference in access control between private class Foo { } and fileprivate ... nested in some other construct? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.5k views
1 answer
    There are 3 string variables public var userLoginId : String? public var searchString : String? public var ... assigned value to dictionary? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
787 views
1 answer
    What is the initial value of the delegate variable if no constructor is provided? class Example { weak var delegate: Bool? } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.7k views
1 answer
    I have this code currently: public var daysOfWeek: [Date]? { let calendar = Calendar.current let today = self ... with Monday and not Sunday. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
879 views
1 answer
    I have a function doEverything that takes a completion block. It calls two other functions, doAlpha and doBeta ... implement that. Many thanks. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
631 views
1 answer
    Background & details Swift evolution proposal SE-0094 was implemented in Swift 3.0, introducing the global sequence ... am I missing something? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
975 views
1 answer
    I've got two Int values (they have to be Ints) and I want them to round off to the nearest value when ... number without changing it to a Double See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    Maybe this question duplicate but my situation is different from others. I have a own bluetooth kit. It puts ... We can customize ble firmware. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
920 views
1 answer
    This error has been annoying all morning, I'm trying to retrieve JSON in the format: song = { 'artist':'Tom Waits', ... )") } } return nil } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
682 views
1 answer
    Sorry if this is trivial - I am so new to swift, actually I have only looked at the language guide+reference ... (Int) multiplied by an Int? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
673 views
1 answer
    I'm trying to build out a basic implementation of Promises in Swift, and I need to be able to add ... functions being first-class citizens. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
776 views
1 answer
    I have custom colors within my code. I use them several times and I would like to have them allocated only ... them cached like Apple does ? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
740 views
1 answer
    I am using an SQLite library in which queries return optional values as well as can throw errors. I would like to ... } else { return nil } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    I was wondering how to provide an empty state view in a list when the data source of the list is empty. ... EmptyListExample(objects: []) } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
902 views
1 answer
    I want in my iOS application to start a timer when the app is running in the background and when the app ... not running/run in the background. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
608 views
1 answer
    I've created the following class class Person { var firstName: String var lastName: String init(firstName: String, ... firstName) // -> John See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.6k views
1 answer
    I have 2 protocols, Filters and Parameters, both of which extend Encodable protocol Filters: Encodable { var page: ... there a way around this? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
653 views
1 answer
    Which is better way to declare Array and Dictionary, I have used both: Array<String> [String] For me [String ... and which one we should follow? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
765 views
1 answer
    The following initialization currently produces this error in the line that calls getEventCalendar: Cannot use instance member ' ... ... } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
683 views
1 answer
    I have an array of objects like this: var myArr = [ MyObject(name: "Abc", description: "Lorem ipsum 1."), ... "Def" } // Pseudo Any ideas? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    How can I update the following code to the new version of swift: self.areaCodeLael.text! = localNumber. ... index of type 'PartialRangeUpTo' See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
794 views
1 answer
    I am trying to use swiftyjson and I am getting an Error: Call can throw, but it is marked with 'try' and the ... } Thank you for all the help! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I've got a function like this: func next(step: Int = 1){ //.... } And now I would like to define a ... define a type for this kind of function? 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

2.1m questions

2.1m answers

60 comments

56.8k users

...