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 swift2

0 votes
866 views
1 answer
    im new in the Swift World. I have a big problem ... I've tried to write an app that has only one ... there any way so solve my Problem? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
485 views
1 answer
    I just upgraded from XCode 6.4 to Xcode 7 GM and get started to change the code to be compliant with Swift ... might have screwed up my project. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
379 views
1 answer
    I know in swift it is possible to interop with c using the @_silgen_name attr on a function in a swift module. Is ... . This is why I'm asking. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
422 views
1 answer
    I've been trying to find the best way to implement a stored property in an extension, and came across this question ... so, what is the reason? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
402 views
1 answer
    I'm trying to make a post request with Swift. my goal is to post the accesstoken facebook to a server but does ... ","keys":["access_token"]}}) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
318 views
1 answer
    I'm testing Swift 2.0 beta right now and have found strange behaviour. Here is a sample code: private func ... of how inout params work. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
516 views
1 answer
    In Swift error handling - how do you know what error type is being thrown without looking at the implementation and ... DecodedJWT(jwt: jwt) } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
495 views
1 answer
    I have a requirement to move a label around only when the user touches on it and drags. I cant find out ... moving :( someone help me please See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
395 views
1 answer
    Value of optional type "..." not unwrapped; did you mean to use '!' or '?'? Can someone explain me what this error ... I use '?' and when '!'? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
438 views
1 answer
    Value of optional type "..." not unwrapped; did you mean to use '!' or '?'? Can someone explain me what this error ... I use '?' and when '!'? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
542 views
1 answer
    I'm attempting to add a badge alert label like the one in the screenshot attached. I've tried to ... stuck. Any suggestion is appreciated. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
302 views
1 answer
    I am making a demo of Alamofire using cocoa-pods.I am referring the tutorial "https://github.com/Alamofire/ ... this issue. Thanks in advance. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
743 views
1 answer
    I have a Package.swift in my project like: import PackageDescription let package = Package( name: "ProjectName", ... where to find UIKit? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
538 views
1 answer
    After migrating to Swift 2, I am getting this issue with an error stating that I should now use @convention(c) (T) - ... >, Float) -> Int>.self) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
440 views
1 answer
    Array: var rows: [(title: String, body: String, icon: String, iconColor: UIColor)] = [] rows.append(title ... fine. Any idea whats wrong? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
339 views
1 answer
    How can if i try to add three menus in the dictionary i wont let me and throws an error when i try to ... no longer be supported in swift 3? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
457 views
1 answer
    var specializationTitles = ["a", "b", "c", "d"] let outputString = join(" / ", specializationTitles) got an ... , [String]) How to solve this? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
369 views
1 answer
    I've been running into an issue using Swift 2's protocol extensions with default implementations. The basic gist ... s "from protocol extension See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
501 views
1 answer
    I have a main class, also providing a namespace: class A { } and a nested class added via an extension (all ... submit a bug report to Apple. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
441 views
1 answer
    There's a similar question about how to weakify/strongify self, which is answered, but I'm wondering how to use " ... code: 1, userInfo: nil) } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
390 views
1 answer
    Is it possible to use Swift 2.2 in Xcode 8? From Xcode 8 release notes: "Xcode 8 supports switching toolchains, ... 8 to work with swift 2.2 See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
437 views
1 answer
    I am switching over the syntax of my project toward Swift 2.2 (which xCode helps me do automatically); ... of Swift are greatly appreciated. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
352 views
1 answer
    If you have protocol like so: protocol Messaging { func sendMessage(message: String) } Is there any way to ... of Swift's default parameters. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
373 views
1 answer
    I am creating a trivia application that asks for a username on start up. I'd like to make it impossible to ... Objective-C. Thanks in advance. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
324 views
1 answer
    Given the two protocols and their extensions: protocol FirstDelegate { func someFunc() } protocol SecondDelegate ... protocol extensions here? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
481 views
1 answer
    This code in XCode 6 does not have error but in XCode 7 (Swift 2) this error has occurred : Method does ... ' with the same Objective-C selector See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
419 views
1 answer
    I am looking for a simple way to convert a binary number in decimal in Swift. For example, "10" in binary becomes "2" in decimal. Thanks, See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
373 views
1 answer
    I have a custom OptionSetType struct in Swift. How can I enumerate all values of an instance? This is my ... / Do something with weekday } 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

...