Swift2 Questions
Ad
Swift 2 - How can I run a code after an asynchronous method?
I am using the following asynchronous method to get data from firebase, ref is just my database url. it's working perfectly but i want to run the
Add iPhone X layout support to old Xcode 7 / Swift 2 project
What i have? an old project using swift 2 and building/running without any issue on xcode 7. it has a lot of dependencies
How to detect end of speech with Nuance Vocalizer, Speechkit 2, for iOS
I am using nuance's speechkit 2 with swift, ios 9.3. ineed to detect when the tts finishes, according to this documentation:
Extracting text from a string
Hi i have this error i keep coming up with that says value of type '[string]' has no member 'characters' here is my code:
Could not cast value of type 'UINavigationController' in Swift 2
Could not cast value of type 'uinavigationcontroller' (0x37aa0dc8) to 'acc.detailviewcontroller' i want to call method of my
Could not cast value of type '()' (0x2c2fb50) to 'Swift.AnyObject
Code: let predicate = nspredicate(format: "self contains[cd] %@", searchtext) let result:nsarray =
Could not cast value of type 'RealmSwift.DynamicObject' to MyCustomObject during migration
During realmswift migration, i want to migrate from dynamic var customobject: customobject to let customobjectlist
Swift: Could not cast value of type '__NSCFArray' to 'NSDictionary'
I have json data from website. i made the main dictionary and i can parse every data except one sub dictionary. i get the error "swift: could not
Could not cast value of type '__NSCFNumber' () to 'NSArray' swift
Why can't cast nscfnumber (core data) to nsarray? error: could not cast value of type '__nscfnumber' (xxxxxxxx) to
Cannot Segue Away From Row Action Button
I have a table view that is listing a bunch of children. when the user swipes on the row, three actions appear arrived,
Ad
Attempting to load the view of a view controller while it is deallocating. CoreSpotlight
I integrate corespotlight in my app. i want that user will find need information in spotlight search and after user will open this
How to download the file from Parse.com using the REST API?
I found this question at parse.com file
Using Realm with swift
I'm quite familiar with sqlite, but decided to try using realm for my next project. i'm having trouble with reading data from the db and deleting
In Swift, how do I animate a UIView with auto-layout like a page sliding in?
I try to create a uiview that is representing a page whose size is the same as the device screen. since the app supports orientation, i am using
Text Field returns nil when there's a space
If someone can help me understand/fix why it keeps crashing/saying my results is nil when there's an actual string being sent. i know the
Multidimensional Array Unwrapping an Optional
So i'm having this problem where i can't unwrap an optional for outputting it into the label, i've even tried just printing it in the console and
How to swipe to delete in a table view
Hello, i'm having trouble using the swipe to delete feature with swift specifically, i implemented the
Swift Syntax Error and init()?
I study swift. i have a question about initializers init(). for example, i want to initialize int. var number:
SWRevealViewController navigation bar right button item
I'm using the swrevealviewcontroller library to use on my app as a left slide menu; github link:
How to pass entire Swift class instance to another class, while using a third party ViewController/class?
I have a class titled viewcontroller (initial view controller) that has various properties. i am trying to pass the same unique
Swift custom cells layout TableView decision
I need to display a table with in my iphone app: neither the number of cells nor the contents are known at compile time,
Ad
How to support auto resizing UITableViewCell with a UILabel in it
I am trying to figure out how get the correct height for my tableview cell that contains a uitextview so that all the content in the uitextview
UILongPressGestureRecognizer issue when adding to MKMapView
I am still new to swift and is trying to figure out how to add a long press gesture annotation on a mapview. however, i kept getting this
Transfer Tableview cell image to another view using swift 2.0
How to transfer tableview cell image to detail view for example i want to display the cell image in another view controller when ever user will
associated property in swift 2.0
I have written an extension in swift 2.0. i want to use associated property in my extension. public typealias sharecompletion =
Swift - How is Instagram doing this?
I'm trying to achieve something similar to what instagram does when you click on 3 dots on the right of the screen under the picture. here's what
Swift UIViewAnimation with spring moves to wrong place then jumps
I'm trying to animate a label moving to another place with a spring effect. uiview.animatewithduration(1, delay: 1,
Binary operator '&' cannot be applied to operands of type 'SCNetworkReachabilityFlags' and 'Int'
I am getting this error when try to check for internet connectivity in my app. i use xcode 7.1.1 swift 2.0 the code block is as
Ad
Blog Categories
Ad