iOS: geojson iOS access

iOS
Developing for the iPad, I have created a file that i call Coordinates.geojson. I would like to access it from within a classfile called JsonDecoder.m...
2 years ago

Convert String to Date Returns nil for afternoon times only

iOS
I have the code to convert a string to a date as: let dateString = detailData.value["eventStart"] as! String print(dateString...
3 years ago

Add a tap gesture to a part of a UILabel

iOS
I have a NSAttributedString like so: NSMutableAttributedString *str = [[NSMutableAttributedString alloc] initWithString:@"testing it out @clickhere"]...
3 years ago

How to stop the activity indicator in swift after a condition is met?

iOS
I have declared a UIActivityIndicatorView as a computed property in extension of my model. I have a method configureCell where I'm trying to use activ...
3 years ago

Storyboard thinks Segue does not Exist. But it does

iOS
I have a show segue between two ViewControllers in my Storyboard. When call performSegueWithIdentifier:, I get an NSInvalidArgumentException: Receive...
3 years ago

Can i set deferent orientations for IPad and IPhone (Universal) app in cordova?

iOS
I am developing a cordova app for both Ipad and Iphone and i need the iphone app to support only for portrait and ipad app to support only for landsca...
3 years ago

Xcode Swift - How to make a video open and play on button click

iOS
I am very new to Xcode and have very little experience. Please could someone show me how to code my app so a video open and play on button click? I ca...
3 years ago

fontSize are not working properly

iOS
I have created an application in which I have added text into a video through `UITextView. It's displaying properly but the problem is that I have se...
3 years ago

Get time (GMT) from 1970 by seconds in swift

iOS
I just need to get the (GMT) time by seconds from 1970 i found this method NSDate().timeIntervalSince1970 but its return the time depends on de...
3 years ago

DNS lookup asynchronously

iOS
There is a piece of code that does DNS lookups using CFHostStartInfoResolution(). However this is synchronously and thus blocks anything before it ret...
3 years ago

AVCaptureSession barcode scan

iOS
I'm currently working with AVCaptureSession and AVCaptureMetadataOutput. It works perfectly, but I just want to know how to indicate to scan and ana...
3 years ago

Can constraintsWithVisualFormat be used with dynamically generated views?

iOS
I have a list of tags in my model. I would like to add them as label inside a tagView UIView as subviews. NSMutableArray *list = [NSMutableArray new]...
3 years ago

will my app respond to a url scheme?

iOS
Before doing a openUrl: to launch an app that should callback my app (like an app that acts according to the x-callback-url specification), how can I ...
3 years ago

Cocoapods spec did not pass validation in an iOS project

iOS
I am trying to create my first pod again. I have tried this long ago, 1 year back I remember, that time also I got similar error. Following code show...
3 years ago

UIPageViewController transition 'Unbalanced calls to begin/end appearance transitions for '

iOS
When I navigate through UIPageViewController faster than its transition animation I am getting 'Unbalanced calls to begin/end appearance transitions f...
3 years ago

UIButton not showing highlight when touched

iOS
I am trying to highlight my UIButton with a custom UIColor light grey and make the text go white... however I am not sure how to do this... this is ho...
3 years ago

UITableViewCell with dynamic height iOS

iOS
I have implemented TableView with CustomCell in my app, I want dynamic height of my UITableViewCell according to text length in UITableViewCell, her...
3 years ago

UICollectionView spacing margins

iOS
I have a UICollectionView which shows photos. I have created the collectionview using UICollectionViewFlowLayout. It works good but I would like to ha...
3 years ago

How to use SCNetworkReachability in Swift

iOS
I'm trying to convert this code snippet to Swift. I'm struggling on getting off the ground due to some difficulties. - (BOOL) connectedToNetwork { ...
3 years ago

Get Device Token in iOS 8

iOS
I need device token to implement push notification in my app. How can I get device token since didRegisterForRemoteNotificationsWithDeviceToken method...
3 years ago