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.5k views
1 answer
    (For SwiftUI, not vanilla UIKit) Very simple example code to, say, display red boxes on a gray background: struct ... How would I go about this? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
568 views
1 answer
    my project uses both Objective-C and Swift code. When a user logs in, it calls a set of apis for user ... beta 3. Any help is appreciated See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
897 views
1 answer
    I would like to know if there is currently (at the time of asking, the first Xcode 12.0 Beta) a way to ... , while this view does not. Thanks. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
677 views
1 answer
    I get a crash when running and it points at the dateFormmater.timezone. The error in the console is: Could not ... myTimeStamp! /** 1000*/) See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
824 views
1 answer
    I'm looking for a way to clear an entire collection. I saw that there is a batch update option, but that would ... , batchSize: batchSize) } } } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
573 views
1 answer
    I am trying to add a UITapGesture to a UIButton so it will trigger a function when tapped. I am using Swift 3 and ... print("Please Help!") } } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
514 views
1 answer
    I have this question except for Swift. How do I use a Type variable in a generic? I tried this: func intType() -> ... var arr = Array<t>() } } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    Say I have an NSMutableAttributedString . The string has a varied mix of formatting throughout: Here is an example: ... , in fact "additive". See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
741 views
1 answer
    Since List doesn't look like its configurable to remove the row dividers at the moment, I'm using a ScrollView ... height for the Text frame ? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
611 views
1 answer
    I am using Parse & ParseUI. I want my PFLoginViewController subclass to have a transparent background. In the ... subclass makes no difference See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
578 views
1 answer
    I am using google maps in Xcode 9 beta, iOS 11. I am getting an error outputted to the log as follows: ... .camera.target.longitude)") } } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
637 views
1 answer
    In Objective-C for Cocoa Apps it's possible to use such way to keep window always on top? ... of unresolved identifier 'NSFloatingWindowLevel' See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
756 views
1 answer
    Am new to Auto layout constraints in Xcode. I have one Bottom View like UITabBar with 6 UIButtons. Without ... help. Thanks in advance. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
554 views
1 answer
    I am using Swift to write an app and I need to show an alert. The app must be iOS 7 and iOS 8 ... a presentation or dismiss is in progress! See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
646 views
1 answer
    I'm new to Swift. What is the difference between a computed property and a property set to a closure? I ... : 50) return lazilyCreatedPush } } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
444 views
1 answer
    I'm wondering if it's possible to achieve such a thing. I have a Playground like this: protocol Foo { func ... to achieve the same with structs. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
801 views
1 answer
    Recently, I've been making a simple iOS 8 share extension to understand how the system works. As Apple states ... user credentials for an API. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
605 views
1 answer
    I want to change the color of the text and icon in the iOS 11 searchbar when it is embedded in the navigation ... 11. Any help is appreciated. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
665 views
1 answer
    I have a navigation bar with a title. When I double click the text to rename it, it actually says it's a ... , I want the title to change. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
610 views
1 answer
    I want my table list to have a swipe-able menu like in iOS 8 (first introduced in iOS 7). I've found a ... to me in a neatly wrapped package. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
505 views
1 answer
    I am currently trying to download, parse and print JSON from an URL. So far I got to this point: ... from NSURL Connection to NSURLSession] See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
549 views
1 answer
    Two questions: Why does this code fail to compile? I believe (but am not 100% sure, I may have made a mistake) that ... >(xs: self.xs.map(f)) } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
615 views
1 answer
    I'm trying to create an URL variable from a string value. I don't understand why the resulting URL is nil I ... .de/" but url is nil debugger See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
910 views
1 answer
    I'm trying to build a simple Swift app to calculate VAT (Value Added taxes = 20%). func taxesFree(number: Int ... var result = textfield * VAT See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
508 views
1 answer
    I find a similar question, but I am trying to detect and identify which Sprite the user touch, and I don ... step it′s identify the sprite. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
766 views
1 answer
    Setting lineBreakMode to byWordWrapping and set numberOfLines to 0 does not seem to be sufficient: struct MyTextView: ... the View is". See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
557 views
1 answer
    just downloaded xcode 9 and i'm having this weird issue, on ios 11 my custom navbar appears to be half in size ... left and ios10 on the right, See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
984 views
1 answer
    An ARAnchor's 4x4 matrix has 4 columns. The fourth column of the matrix contains 3 translate values for x, y ... the other 3 columns represent? 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

...