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
743 views
1 answer
    Im currently retrieving data from firebase the data is put inside an NSObject and then a completion block. The item ... in print(error) } } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
540 views
1 answer
    Is it right to make a structure's instance this way? public struct Barometer { public var pressure: Int public ... need to adopt a protocol? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
763 views
1 answer
    I want to transpose an array of arrays like this: Original array: [ [1,2,3], [4,5,6], [7,8,9] ] ... be a simpler to do this with 2D arrays. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
543 views
1 answer
    I was wondering if there was an easy way (or at least a way) to find out where retain cycles exist in ... his answer will help. Thanks @Sweeper! See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    What is a ray-casting in ARKit and RealityKit for? And when I need to use a makeRaycastQuery instance ... ARRaycastQuery? Any help appreciated. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
579 views
1 answer
    I would like to use Self in init parameters like so: class A { public init(finishBlock: ((_ operation: Self) ... () } Is this somehow possible? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
526 views
1 answer
    I am in the midst of coding an IOS application using Xcode 8.2.1 in Swift. Currently, I have the database set ... you in advance for any help! See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
542 views
1 answer
    I have three arrays I am trying to run through and I want to use the values from all three arrays in one ... ? Any help is appreciated. Thanks! See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
462 views
1 answer
    Take the following protocol and extension: protocol ProtocolA { func myFunc() } extension ProtocolA { func myFunc( ... any functionality at all? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
728 views
1 answer
    As you can see in the screenshot, the button height does not adjust to fit the text size, making it look ugly. How can I ... /4)-16) } } } } } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
506 views
1 answer
    I'm trying to sort the array that is being set before setting it but the argument of willSet is immutable and ... sort is trying to mutate it. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
650 views
1 answer
    With Swift 3 JSONSerialization, if a part of your data model was completely dynamic, you could always just leave ... there any solution to this? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
750 views
1 answer
    Recently, I wrote this code without thinking about it very much: myObject.myCollection.forEach { myObject.removeItem($0) ... it isn't crashing? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
531 views
1 answer
    I am trying to create a button an want to do some stuff before navigating to another view. But if I ... .foregroundColor(Color("GreyLabel0")) } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
615 views
1 answer
    In Obj-C, a common practice was to use convenience functions to perform common operations, like ... makeConstraint(withAnotherView: view2) See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
650 views
1 answer
    I want to round my right corners, but only works for Left corners let path = UIBezierPath(roundedRect: view ... view.layer.masksToBounds = true See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
635 views
1 answer
    I want to verify if an element is visible or not depending on its .hidden property but I don't find a ... verify the "hidden" property value? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
448 views
1 answer
    say i have a very simple Person class class Person { var name:String init(name:String) { self.name = name } ... (Person) throws -> Bool'" See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
488 views
1 answer
    I have an array of different structs, all implementing Equatable protocol and am trying to pass it to a function ... 'T' could not be inferred See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
453 views
1 answer
    Where is the error? Apple reject app and sent messege: Performance - 2.1 We discovered one or more bugs ... got the following results: Thanks! See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
620 views
1 answer
    Reference cycles in Swift occur when properties of reference types have strong ownership of each other (or with closures). ... otherA = A() } } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
807 views
1 answer
    I'm making an app with Swift and I'm using Firebase Firestore. Firestore is a database that has some strings that I ... "] as? String)! } } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.6k views
1 answer
    the second day I can not solve the problem with the table. We have a segmentedControl which, when changed ... Congrats on the upcoming holidays! See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
609 views
1 answer
    We are working on a demo app using people's occlusion in ARKit. Because we want to add videos in the final ... SCNBox does not fix the problem. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
607 views
1 answer
    I am trying to currently display the album artwork for a locally stored .MP3 track in an ImageView. Does ... commonKey for "artwork". Thanks See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
749 views
1 answer
    I am trying to teach myself Core Data by building a homework managing app. My code builds fine and the ... window.makeKeyAndVisible() } } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
643 views
1 answer
    I'm trying to remove the "row" separators (known as dividers in SwiftUI) from a List in SwiftUI. I went ... . Any help would be appreciated. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
650 views
1 answer
    I'm trying out the new ARKit to replace another similar solution I have. It's pretty great! But I ... surface (ARHitTestResult). Thanks! See Question&Answers more detail:os...
asked Oct 17, 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

...