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
788 views
1 answer
    SwiftUI Custom Button in List I'm trying to create a custom button in a SwiftUI List. I want it to have a ... some View { ExampleView() } } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
593 views
1 answer
    After the latest upgrade of Swift 1.2, I can't figure out how to split a line of text into words. I used ... the correct secret sauce for 1.2? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
652 views
1 answer
    In Swift, you can use if let optional binding to unwrap an optional into a constant or variable with the ... better place for this question. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    While trying to execute this block of code in Swift 3, I encountered the error: binary operator '/' cannot be ... the first block of code work? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
655 views
1 answer
    So split("There are fourty-eight characters in this string", 20) should return ["There are fourty-eig", ... {currentIndex = string.endIndex} See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
766 views
1 answer
    I am using Alamofire to download data How to make alamofire run download in background with swift? Thanks See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
813 views
1 answer
    Hello i have some views with rounded corners, and I'd like to apply a shadow to this views. SO first I ... The shadow is not rounded at all See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
738 views
1 answer
    If I have an implicitly unwrapped optional declared in my class which I then reference in a Dictionary of type ... types in my Dictionary. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
602 views
1 answer
    Results - auto generated ID - auto generated ID value1: abc value2: def I want to be able to query where " ... doesn't work as described above. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
567 views
1 answer
    I have extension for NSManagedObject that should help me to transfer objects between contexts: extension NSManagedObject ... type to MyEntity? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
804 views
1 answer
    I wan't to check if my url statusCode equals to 200, I created a function returning a Boolean if the ... -void return value in void function See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
590 views
1 answer
    Have been looking at lighting on Scenekit, and while I can now apply a lighting node to light something I'm ... to achieve this? Many thanks. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
785 views
1 answer
    I have this block of code: DispatchQueue.main.asyncAfter(deadline: .now() + (delay * Double(isDelayAccounted.hashValue)) ... I want to stop it. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
774 views
1 answer
    Code and errors Continued on the code and one more errors! Hi, I'm new to Xcode swift. I have been doing good ... can't link more items than 2. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
732 views
1 answer
    I'm trying to detect when a finger first makes contact with a view in SwiftUI. I could do this very ... experiencing a specific contextual bug. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
619 views
1 answer
    //date func sectionName() -> String{ var shortDate: String let dateFormatter = NSDateFormatter() dateFormatter.dateFormat = ... don't know why. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
776 views
1 answer
    When I set color of some property in Storyboard (for example textColor of my UILabel) as color created as New ... So, why is this happening? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
606 views
1 answer
    I'd like to extend Array in Swift to return a single element in each array, or column, for a 2D ... extension documentation Thanks in advance. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
414 views
1 answer
    Suppose I have a model, Car, that is instantiated in ViewModel1 with the following initial properties: ViewModel1 ... vc2.viewModel.car = car See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
825 views
1 answer
    Before changes in UIKit iOS 13 how I can set rootViewController at SceneDelegate? class SceneDelegate: UIResponder, ... { return } } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
479 views
1 answer
    I saw an answer to this question, which, in it's first revision, had code similar to this: let numbers = ... of the same element multiple times? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
801 views
1 answer
    Is there a possibility to only perform an assignment (e.g. to a non-optional property) if the ... object.nonOptionalProperty = unwrapped } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
582 views
1 answer
    There are a lot of solutions to find out on which device out app is running. iOS: How to determine the ... device is simulated in code ? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
725 views
1 answer
    I'm searching for the syntax to do pattern matching with multiple cases in an if case statement. The example would be ... Male, .Female = a { } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
840 views
1 answer
    I have got a View Controller embedded in a Navigation Controller with prefers large titles option set to true; inside the ... 9, Swift 4, iOS 11 See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
848 views
1 answer
    I've managed to get a cube (SCNNode) placed on a surface where the camera is pointed, however I am ... ve never worked in SceneKit before. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
716 views
1 answer
    After upgrading Xcode a critical part of my application has stopped working. When my app launches I run a ... is much appreciated. Thank! See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
630 views
1 answer
    I have successfully created a cell-based NSTableView purely in code. I would like to make the cells a little ... this would be much appreciated! 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

...