Data dodania Pytanie
2017-08-09 14:08 How to make ViewController load itself from nib on viewDidLoad() properly? »
So I have a nib file for my CustomViewController and every time I want to present this Controller I do let vc = CustomViewController(nibName: "Cu...
(2) odpowiedzi
2017-08-06 09:08 Two files with same name »
I have two files in my project. One file is in a third-party Objective-C library and other is in my project. Here DSGHappiness is a third-party lib...
(0) odpowiedzi
2017-08-04 10:08 how to use Objective-C project in my Swift project »
Note: I know How to call Objective-C code from Swift, but I don't know below, I'm new to ios. I want to use this EsptouchForIOS's Demo in my project....
(2) odpowiedzi
2017-08-03 10:08 EventKit Unit testing - stall on main thread »
I need to create multiple calendar events for Unit Test in Xcode. The call needs to be async, because of the access rights request: eventStore.reque...
(0) odpowiedzi
2017-08-01 17:08 In Swift, why is "let _ = this" faster then "this != nil"? »
So my question is why is let _ = this faster then this != nil? Example: This is: let this : Bool? = true // let start = DispatchTime.now() for _ i...
(2) odpowiedzi
2017-07-31 20:07 Adding multiple arrays to form one final array. Debug swift xcode »
I am trying to create a flashcard app. I successfully got the app too the point where there were 11 different arrays of flashcards and all of these ar...
(2) odpowiedzi
2017-07-31 10:07 Cannot convert generic type to generic of Any/super class »
I'm trying to understand why i'm getting error in the following code: class A <T> {} class B {} class C : B {} let a = A<C>() as A<B&...
(0) odpowiedzi
2017-07-29 11:07 NSURLSession - Downloading a small PNG image in the background »
Can you help me please. I would like to improve this code, possibly by utilizing NSURLSession? How would I change this code to use this construct? Th...
(1) odpowiedzi
2017-07-29 00:07 Tap screen for sound(array of sound files), xcode and swift »
CURRENTLY - I am in the midst of building a flashcard app. The app displays an array of flash cards which the user can swipe left and right through(c...
(2) odpowiedzi
2017-07-25 15:07 Xcode debug memory graph showing released object »
I've been looking in the Xcode Memory Graph tool for a project and was noticing some odd behaviour. Hoping someone might be able to explain what's goi...
(1) odpowiedzi
2017-07-25 09:07 Swift 3: Checking if app is in background »
I need to check if the app is moved to the background. Why? Well because my app works with bluetooth and only one person can be connected to this dev...
(3) odpowiedzi
2017-07-24 22:07 XCUI Test: How to click Labels populated at run time »
I am trying to click label which is populated and cached at runtime. The TableViewCell has a UILabel which is decided at runtime. So I can't add a Acc...
(1) odpowiedzi
2017-07-24 09:07 My Xcode swift project name contains space, so while creating bridging header i need to maintain space »
My project name Crisp Air in swift language. i want to use objective c files using pods for that purpose i have created bridging header like Crisp Air...
(1) odpowiedzi
2017-07-21 07:07 I need to pass string value from index 1. i have code in swift 1.2 but i can't get desired output in swift 3 »
cString = cString.substring(from: advance(cString.startIndex, 1)) //I'm new to swift3 please suggest me replace to this line in swift 3. Xcode is no...
(2) odpowiedzi
2017-07-19 13:07 UIButton Click Not working when its triggered from static library »
We are trying to trigger display button from static library project using webview. while integrating static library with single view application we ha...
(2) odpowiedzi
2017-07-16 09:07 swift - I can connect to socket.io server but I can't emit event »
I am beginner to socket.io now I can connect to socket server & server log my connection but I can't emit events to the server here is my code : ...
(1) odpowiedzi
2017-07-12 10:07 Move to first screen/Home screen at Application Crash »
- (void)applicationWillTerminate:(UIApplication *)application { NSLog(@"Application is terminating now."); } This function is called when applica...
(2) odpowiedzi
2017-07-08 19:07 Cocoa bindings call valueForKey: instead of valueForKeyPath: »
I have an NSPopUpButton which is bound to a subclassed object, with the following methods overwritten: - (id)valueForKeyPath:(NSString *)keyPath { ...
(1) odpowiedzi
2017-07-08 15:07 Xcode can't find my cell identifier »
I'm getting an error with my code that says... "Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'unable to...
(2) odpowiedzi
2017-07-08 14:07 xCode iOS SDImagecache.h Error (Cannot combine with previous 'void' declaration s) »
I get two errors the Code is my original one, i have the error message right below the code on both of them. Any help is appreciated. - (void)removeI...
(0) odpowiedzi
2017-07-06 12:07 Using Do/Catch in Swift »
I am working on an app and want to get data back from a function. However sometimes data is missing or is different from the kind of that I want to re...
(5) odpowiedzi
2017-07-03 22:07 Xcode 9 Beta 2 libxml error »
When I build my project with beta 1 it works just fine, but in beta 2 it does not work. In this build I get all sort of errors with libxml I think. Fo...
(0) odpowiedzi
2017-07-03 20:07 How to check the order of pressed buttons against an existing array Swift 3.0 »
I would like to check the order of pressed buttons(they have all got tags) against an existing array. For example i have an array with 1-9 and 9 butto...
(1) odpowiedzi
2017-06-30 10:06 Reading file from txt file but is not inside the Xcode project »
Need help regarding getting the txt file which is not located in the xcode project. Is there any way to retrieve the txt file without having the txt f...
(1) odpowiedzi
2017-06-27 23:06 BoringSSL errors on iOS 11 running on xcode 9 »
I'm running my framework on xcode 9 on an iOS 11 phone and getting the below errors. Can't find a reference to BoringSSL anywhere in my code, not sure...
(0) odpowiedzi
2017-06-27 21:06 Swift 3 - Headers In A Table View »
This may seem like a simple question but I have looked around and can't find a straight forward answer. My app is a to-do list app and I would like to...
(1) odpowiedzi
2017-06-27 14:06 remove previous pins and update coordinates »
This code shows my current location and when I press other location the label updates the new coordinates and puts a new pin in the new pressed place....
(2) odpowiedzi
2017-06-26 03:06 iOS: How to set programmatic alpha mask of SKSpriteNode »
I am able to set the alpha mask of my own custom object in the .sks file of the project, but I'm not sure how to do it programmatically. ...
(1) odpowiedzi
2017-06-22 05:06 Auto-resize UITableViewCell: Unable to simultaneously satisfy constraints »
I'm attempting to implement a UITableViewCell that automatically resizes its height to fit the available contents. I have the following layout right ...
(1) odpowiedzi
2017-06-21 20:06 Adding height constraint to UILabel issue »
In Swift3 want to add height constraint 20px to UILabel but no luck, what I am missing? addConstraint(NSLayoutConstraint(item: titleLabel, attribute:...
(1) odpowiedzi
2017-06-21 10:06 Is there a way to get list of variables and function of a class »
Is there a way to get list of variables and function of a class? For example: If my class is like below class Person { var age: Int! var nam...
(2) odpowiedzi
2017-06-20 12:06 How to add visual documentation to a method »
I want to add the following documentation to a method: /*! @discussion Creates a new tab ___ ___ _________| + |__| 1 |__ ...
(1) odpowiedzi
2017-06-19 02:06 Swift Animate Textfield »
I want to create an animation for my UItextfield. To do this, I created a sub class of UITextField and I stored my code there: import Foundation im...
(1) odpowiedzi
2017-06-18 08:06 display image from camera roll in imageView.image not working Xcode objc »
I have an app that I want to select an image from the photoLibrary using UIImagePicker and then display it in a UIImageView.image. It was working not...
(1) odpowiedzi
2017-06-15 20:06 Swift: Functions called in the wrong order? »
So, I've been working on a Weather App with the following brief Data Model class CurrentWeather { private var _cityName: String! private var ...
(2) odpowiedzi