Data dodania Pytanie
2017-04-06 13:04 UIApplicationDelegate but for each ViewController »
I want to get notified whenever a new view controller is shown, the UIApplicationDelegate provides such a way but for the whole app, not for each view...
(3) odpowiedzi
2017-04-06 10:04 Are Swift dynamic libraries backward compatible with older swift version projects »
I'm starting to work on a SDK from scratch. I'm not really sure if I should write it in Swift or Objective-C. I feel Swift is better than Objective-C ...
(1) odpowiedzi
2017-04-05 21:04 Monitor CBPeripheral state changes »
So there's a way to monitor state changes of CBCentralManager via centralManagerDidUpdateState(). But is there a similar method call to monitor state ...
(2) odpowiedzi
2017-04-05 13:04 How to detect triggered date of an actionable Notification »
I have a reminder in my app. In which I've created daily repetition of a notification. Now multiple notifications can be seen in my notification cente...
(1) odpowiedzi
2017-04-05 11:04 “Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift »
I just did the last XCode update (8.3), and I have the message : “Swift Language Version” (SWIFT_VERSION) is required to be configured correctly...
(3) odpowiedzi
2017-04-05 07:04 Creating Complications for Apple watch »
I know how to create the basic watch complications. I want to create complication like native Battery one (Circular Ring). How can I fetch live data...
(1) odpowiedzi
2017-04-04 23:04 Toggling a constraint under a certain condition »
Setup: I have designed an UIButton with a bottom constraint X, priority 999. In addition to this constraint the UIButton also has another constraint Y...
(1) odpowiedzi
2017-04-04 17:04 SWRevealViewController closes when opened beyond 'snappoint' »
I'm trying to make the SWRevealViewController work in my application. What I did is I didn't want to be able to open the menu from everywhere on the ...
(2) odpowiedzi
2017-04-04 15:04 How is the setUp() method called before the invocation of each test method? »
I'm going through a great book learning about test-driven development in Swift. My ultimate goal is to get a better understanding of OOP architecture...
(3) odpowiedzi
2017-04-04 11:04 Issue in security text entry in UITextField Swift »
When i use default Security text Entry in UITextField in Swift Language after type type text once UITextField. Once loss focus focus from UITextFie...
(2) odpowiedzi
2017-04-03 22:04 Problems with associated values of enums »
I have created a response enum for my network return value and a function which should return an AnyObject because it becomes it has to be a value of ...
(1) odpowiedzi
2017-04-03 09:04 What are the performance pros and cons for using mutation in a struct in Swift »
I have been using some functional program to avoid mutating a struct and there are no clear explanation which approach is best in terms of performance...
(0) odpowiedzi
2017-04-03 08:04 iOS : Create a simple audio waveform animation »
I am trying to record audio with AVAudioRecorder. I need to create a simple waveform like this : When the user speaks into the microphone a circle ...
(1) odpowiedzi
2017-04-03 00:04 Can't programmatically trigger segue in SpriteKit, using Xcode 8 and Swift 3 »
I'm making a game in Xcode 8 using SpriteKit and have been having a very difficult time programmatically triggering a segue. I have gone into "Main.s...
(1) odpowiedzi
2017-04-02 23:04 Swift 3 - Pulling images from mySQL database »
I am currently in the process of designing an application that has a newsfeed. Images and text are stored in our database but I am having trouble pull...
(2) odpowiedzi
2017-04-02 22:04 Combinating Swift & Objective C files »
I have a bit complicated classes in swift and Objective-C combinated together: Keypad.h: #import "MyApp-Swift.h" @interface Keypad : UIViewControl...
(1) odpowiedzi
2017-04-02 21:04 GCD background task maximum TTL »
I need to be able to program background tasks. Little "crons" if you will, that execute some simple code. While not being an expert in GCD I was wonde...
(1) odpowiedzi
2017-04-02 20:04 Why does Data.append(Mutable​Range​Replaceable​Random​Access​Slice<Data>) append slice.count bytes from the beginning of the base collection? »
Using Data.append(Mutable​Range​Replaceable​Random​Access​Slice), I expected the bytes within the start/end indexes of the provided slice to...
(1) odpowiedzi
2017-04-02 20:04 Swift 3: UILabel not showing in custom UITableViewCell »
I have a custom UITableViewCell called CCLineupTableViewCell that looks like this: @IBOutlet weak var artistNameLabel: UILabel! @IBOutlet weak var ar...
(2) odpowiedzi
2017-04-02 19:04 Firebase authentication process »
I am having problems wrapping my head around the linking of firebase authentication providers. I have implemented email/password signup as well as Fa...
(0) odpowiedzi
2017-04-01 22:04 Adding a stream of numbers using ReactiveSwift »
New at ReactiveSwift and FRP in general, trying to build a small calculator app to try to get the hang of it and I'm stuck figuring out the reactive w...
(0) odpowiedzi
2017-04-01 21:04 Swift: Convert string to hex color code »
I have generated user Ids (with a format like ""XzSYoKJaqKYREkdB2dgwt0fLOPP2"") from a database that I would like to use to create an UIColor. I foun...
(2) odpowiedzi
2017-04-01 18:04 What happens to a promise that's abandoned? »
I have the following code defined in a view controller. _ = accountService.getAccount() .then { user -> Void in self.txtBxUse...
(2) odpowiedzi
2017-04-01 16:04 Populating a two dimensional Swift array using append vs element by element »
Using Apple Swift: I have a very large two dimensional String array from, for example, a .cdl file. I then build a Double array from the String array ...
(0) odpowiedzi
2017-04-01 16:04 Adding watermark on facebook live video stream in Swift 3 »
I need to insert a watermark ( an UIView with an image and a textfield ) into a facebook live video stream. My project uses this very good code on Git...
(0) odpowiedzi
2017-03-31 22:03 How do I limit the dragging area for image views »
My first post and I am currently making an app in Xcode 8.1 using Swift 3 I have 9 images that I have made draggable with touchesBegan and touchesMov...
(2) odpowiedzi
2017-03-31 18:03 Selecting a random value from a subsection of an enum »
Given a Swift enum as such: enum PerformerPosition: Int { case String_Violin1 case String_Violin2 case String_Viola case String_Cell...
(3) odpowiedzi
2017-03-31 12:03 how to cast up to super class when there is an override function in the sub class »
A super-class Car and a sub-class Jaguar was created. The function info() -> Void in the sub-class overrided the super-class' function. A instance nam...
(2) odpowiedzi
2017-03-30 21:03 Turn swift object into a JSON string »
I have classes like these: class MyDate { var year : String = "" var month : String = "" var day : String = "" init(year : String...
(1) odpowiedzi
2017-03-30 12:03 label constraints not working »
class videoCell:UICollectionViewCell { override init(frame: CGRect) { super.init(frame: frame) setUpViews() } let titlelabel :...
(2) odpowiedzi
2017-03-30 11:03 Why is UICollectionView insetForSectionsAtIndex not being called? »
I'm looking to use the following function but unfortunately it's not being called. func collectionView(collectionView: UICollectionView, layout colle...
(1) odpowiedzi
2017-03-30 03:03 Xcode 8.3 can't support Swift 2.3 »
I'm using Swift 2.3 in my project. Yesterday, I updated Xcode to version 8.3 but my project can't build successfully any more. I got this error messag...
(2) odpowiedzi
2017-03-29 14:03 brew: no formula called ctls »
I'm getting the following error when trying to install Vapor's CTLS package. Gertrude:ctls tanner$ brew install ctls Error: No available formula wit...
(1) odpowiedzi
2017-03-29 13:03 Swift hash a string using hash_hmac with ripemd160 »
I'm trying to hash a String in Swift 3 (and/or objective C) using ripemd160 to emulate the output of the following php: $string = 'string'; $key = 't...
(2) odpowiedzi
2017-03-29 12:03 UICollectionView Programatically »
Hi I created my own window in storyboard like below-: func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UI...
(2) odpowiedzi