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
    I wish I had never updated my pod, the entire project was full of errors, one specific error is in the photo ... }) }) uploadTask.resume() } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    Xcode 8 beta 4 no longer recognizes Foundation class AttributedString. I've reproduced it in this simple ... code error in Playground? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I'm building a chart using iOS-charts I'm trying to convert the floats into int, but iOS-charts only allows ... making sure only ints are used? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
960 views
1 answer
    func rand(max: Int?) -> Int { var index = Int(arc4random()) return max? != nil ? (index % max!) : index } ... % UInt32(max!)) : Int(index) } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I implemented custom navigation bar height, by subclassing it with following code class TMNavigationBar: UINavigationBar { /// ... bar in IB). See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I try to select a row in my PickerView but it doesn't works. It stays at the first row. Here is my code: ... row but it stays on the first one. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.5k views
1 answer
    Can I return a list of all subclasses of one class? For example: class Mother { } class ChildFoo: Mother ... [ChildFoo.self, ChildBar.self] See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.7k views
1 answer
    I have an array of dictionaries that I'd like to convert to JSON. My object is of type [[String: AnyObject]] and ... } } How can I do this? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    When a UIActivityViewController is called on the iPhone in this app, it works perfectly, but when called on a iPad, ... do to fix this problem? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
974 views
1 answer
    I have created a square that is 40x40, as shown above. I have a 4x40 strip that I'd like to use to ... also increase as the sprite increases. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
967 views
1 answer
    I've read Subclassing NSManagedObject with swift 3 and Xcode 8 beta and read this great tutorial. Still have questions on ... - without ? or !? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I have this function: func flatten<Key: Hashable, Value>(dict: Dictionary<Key, Optional<Value>>) -> Dictionary ... protocol type 'Optional<Any>' See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    Why can I have an [AnyObject] array and put a bunch of different sized types in it ... var a = [AnyObject] ... ? Why is this designed like this? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.5k views
1 answer
    I'm trying to display MFMailComposeViewController in an app. if MFMailComposeViewController.canSendMail() { let ... } Demo project See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    Is there any difference between: NSRange(location: 0, length: 5) and: NSMakeRange(0, 5) Because Swiftlint throws a ... Thanks for the 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 have the following code to draw a text over an NSImage. But the resulting image is getting resized to smaller ... im.unlockFocus() return im } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
931 views
1 answer
    Building on previous question which got resolved, but it led to another problem. If protocol/class types are stored in ... .speak() } } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.6k views
1 answer
    I'm trying to access the name variable from Indicator class, which inherits from Person. However, I believe I'm not ... print("(name)") } } 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 working on a chat app using Swift, and cocoa pods and I keep getting this issue. It says no such ... ) default: break } } } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    We need to use a AppleScript to create an outgoing email message in macOS. The script works fine in the Script ... "runScript",self.script) } } 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 attempting to trap a SIGINT for a UI application made for MacOS. In the app delegate class, I ... can close the resources appropriately? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    My Current View Controller is like this import UIKit import Alamofire class ViewController: UIViewController , ... Please help!!! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I tried to set the font of UIButton via appearance proxy. But it doesn't seem to work. This is what ... conforms to the UIAppearance protocol." See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.5k views
1 answer
    I would like to create a UITabBar with rounded corners. Is there a way I can make the UITabBar ... () return newImage! } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.9k views
1 answer
    I want to prevent taking screenshot of a page in app. how to do it programmatically so that screenshots ... // executes after screenshot } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I am trying to append/remove items from an array inside of a Firestore Document but every time the entire ... currently possible in Firestore? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I have simple UITableView with some data. The table's height is greater than the screen size. Now I need to catch ... to capture this. isn't it? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    My Swift-iOS app is meant to show the user's location on a map. However, the XCode debug console tells me I ... as indicated here doesn't help. 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

...