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
804 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
610 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
668 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
671 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
782 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
834 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
752 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
628 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
587 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
830 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
609 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
806 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
813 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
746 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
637 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
792 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
623 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
427 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
851 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
495 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
814 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
605 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
743 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
849 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
862 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
748 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
643 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

2.1m questions

2.1m answers

60 comments

57.0k users

...