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
    Here is an example playground: protocol P { associatedtype T func getValue() -> T } class Foo: P { func ... way to call the generic one? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
949 views
1 answer
    Question: Update and save fast, relationship between tables with lots of data after both or one of the table is ... advance for anyknid of help. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I've recently learned a little bit about hash values, and therefore also heard of about the problem of hash ... to have the same hash? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    I build an app with the 2nd beta of Xcode 11, using SwiftUI, and everything worked completely fine, but now, ... Use of undeclared type 'View'" See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I want to declare in a protocol a class func, I intend to conform to this protocol from a class A, B and ... sure how to abstract this. Thanks! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    Does anybody know of a shortcut to test whether three numbers are the same? I know this works: if number1 = ... a lot of different values. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    Is it posible to integrate local dependencies with SPM in xcode 11, File > Swift Packages > Add Package dependency. ... Im using xcode11 beta 5) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    I am using Alamofire for network handling in swift and run into one weird error. It seems like we can't pass ... false, response:nil) } } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
920 views
1 answer
    there are two attributes 'time' and 'isOn' (string, bool) in the entity named 'Item' in viewcontroller class I ... switchBtn.isOn = false } } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I want to synthesize text. I have an array of sentences and array of pauses, that I wish between these sentences. ... ) semaphoreIndex += 1 } } 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 made a function in iOS 8 to play a movie in the background and now when i want to use it ... viewcontroller return true } return false } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    I'm developing an app on which I want to show a lot of events on the map. The user can click on an event ... show when user open the map view. 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 a strange case. My swift ios app is connected to Cloudkit. If the app is NOT running (background ... in the foreground or background. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I have an IBOutletCollection of UIButton: @IBOutlet var buttons: [UIButton]! and a function for a tap: @IBAction ... the problem in this part? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
892 views
1 answer
    I'm fairly new to Swift and this question is probably really stupid. So bear with me please. I have a ... calls have ended. Any help ? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    Im trying to update a variable inside a class "var CurrentStatus:status! " status is an enum. I have a ... }) } } return CurrentStatus } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    After parsing JSON I got my data in arraOfData of ViewController, but collectionView not display this. If I use static ... )" return cell! } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
934 views
1 answer
    I have a very simple app with two UIviewcontrollers. I want to dismiss one and present another one. However, when I ... : true) {} } Result: 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 just released my app on the App Store however I have just been emailed and told that there is issues with ... version of iOS 7 or 8? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
2.3k views
1 answer
    It seems like it should be easy to do, but how do I delete the item at the indexPath when the "X" ... realm.delete(category) code. Thank you. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    I would like to retrieve data from my simple Firestore database I have this database: then I have a model class ... . Thank you for your 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'm creating a custom button in SwiftUI using some shapes. As a minimal example, I have a filled rectangle, enclosed ... self.action() } ) } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I create an instance of DateComponents using the following code: let dateComponents = DateComponents( calendar: .current ... help in advance. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I'm trying to get a circle on top with the form content down below, right above my TabBar. I can somewhat force this ... test2", text: $b) } } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    I'd like to create an extension for UnsafeMutablePointer that only affects UnsafeMutablePointer<UInt8>... I understand ... . is this possible? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
935 views
1 answer
    We all know that swift has a strong type system, and as such I lean towards using this system to my advantage :) Here ... in "Hello, (name)" }) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    After some testings by printing faceAnchor.transform.columns.3, digging in SO: ARFaceAnchor have negative Z position? ... Thank you in advance See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    Hello I'm new at swift programming and i want to get label value from loadData() to use use for my path ( ... a follow up from this one.) 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

...