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.1k views
1 answer
    The code is: let redColor = "u{001B}[0;31m" var message = "Some Message" print(redColor + message) //This ... I don't want to use libraries. 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 create a dictionary of the sort [petInfo : UIImage]() but I'm getting the error Type ' ... for all occurrences of this struct? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
695 views
1 answer
    I have a string let stringPlusString = TextBoxCal.text I want to get the last character of stringPlusString. ... something similar in Swift See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
954 views
1 answer
    You can create a String extension like so: extension String { func someFunc() -> Bool { return true } } but ... specified by a 'where' clause See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
662 views
1 answer
    I'd like to reproduce the Xcode blue drag line in my app. Do you know a way to code this ? I know how to ... of all other items (on the screen). See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
863 views
1 answer
    I have a custom UITableViewCell subclass which contains a few IBAction methods wired up from a nib. Under ... developer.apple.com/thread/16179 See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
955 views
1 answer
    Solution Here is a full solution/work around for this issue, please up vote Blld's answer as well because this was the ... .2 and 13.2 (seed 1) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
758 views
1 answer
    The new Safe Area layout guide introduced in iOS 11 works great to prevent content from displaying below bars, but ... ? Or elsewhere? Thank you See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.5k views
1 answer
    I am learning how to work with TableViews and I am wondering how can I figure out if the tableView is ... UIControlState.normal) return cell } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
848 views
1 answer
    Is that possible to do drag and reorder from one section to another section from collectionview - iOS 9. ... collectionView?.reloadData() } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
813 views
1 answer
    I downloaded the Xcode 8 beta and was trying to play around with the iMessages app extension sdk but ran into ... solution. thanks for the help See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
747 views
1 answer
    In the documentation, I see Content in a different context: /// A modifier that can be applied to a ... predefined content usage in SwiftUI? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
713 views
1 answer
    This is my model. messagesRef = Firebase(url: "https://"+CONSTANTS.FirebaseDB+".firebaseio.com/messages/1:1000") ... . How can I query this? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
782 views
1 answer
    i'm trying to style the navigation bar properly, i need to change the font to helvetica neue with a size point of ... font, how can i fix it? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    I am trying to run an app on my physical device, it starts to build onto my device then crashes due to an ... supposed to do. Can anyone 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 am building an ARKit app where we want to be able to take a photo of the scene. I am finding ... get AVCapturePhotoOutput to work with ARKit See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
825 views
1 answer
    If I have a closure passed to a function like this: someFunctionWithTrailingClosure { [weak self] in ... as well? Thanks! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
842 views
1 answer
    Inspired from this question. Swift support to create enum with any raw type, so it will be nice to able to ... enum with raw type of CGPoint? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.5k views
1 answer
    I implemented a POST request with Alamofire with a custom header, because we work with OAuth2 and we have to send an ... ("ERROR: (error)") } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
827 views
1 answer
    I started to use swiftLint and noticed one of the best practices for Swift is to avoid force cast. However I used it ... } else { // code } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
909 views
1 answer
    I'm trying to make an app using Apple's SwiftUI and I need to have two buttons that present two different views ... the two cases, it doesn't. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
615 views
1 answer
    I'm following the first tutorial in Apple's series explaining how to create & combine views in a SwiftUI ... know when it is important? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    How can i add a 2dView having text in ARkit scene iOS.How can i add that view in top of a node that won't rotate when we rotate the node. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    This function fails with runtime error: -[UIWindow viewForFirstBaselineLayout]: unrecognized selector sent to instance ... ?.makeKeyAndVisible() See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    Apparently changing the navigationBar height faced a new approach in iOS 11. in previous iOS versions it was possible ... to solve the problem? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I want to be able to resize and move an image in SwiftUI (like if it were a map) with pinch to zoom and drag ... know if there's an easier way? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
746 views
1 answer
    // Playground - noun: a place where people can play func getAverage(numbers: Int...) -> Double{ var total = 0 ... was set to 4 instead of 4.5 See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.6k views
1 answer
    I am trying to split an Int into its individual digits, e.g. 3489 to 3 4 8 9, and then I want to put ... { array.append(digit) } Any ideas? 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

...