UITextView Hyperlink to Internal WebView

UITextView allows tappable attributedText based hyperlinks.The user interaction with the link can be intercepted by implementing the delegate method. textView:shouldInteractWithURL:in: which has two variations, for iOS 10 and one for iOS 9 as below. ...
more »

2017-03-19 22:03 (1) Answers

pickerview does not display data from an Array

PikerView in my view controller is not displaying data. It works fine when I test it with some Array literal values. Should I be reloading data somewhere? class FirstViewController: UIViewController, UIPickerViewDelegate, UIPickerViewDataSource {...
more »

2017-03-19 01:03 (2) Answers

Switching function of UIButton

I have a UIButton and I want to case switch between functions of the button. The first case would be to print hello and the second case would be to print yes. And it will restart and keep going over and over again. I tried but I Keep failing. I tried...
more »

2017-03-18 23:03 (1) Answers

Viewport meta tag not working across platforms

Im having non-stop issues with this problem. 1) If I zoom-in on a touch screen device then relaod the page it does not restore its original proportions. Ive found a way to resolve that issue on Android devices, with some degree of success, as describ...
more »

2017-03-18 23:03 (0) Answers

autolayout constraint not working

I want to implement scrollview (Horizontal scroll)with paging and one of the page also contains another scrollview (Vertical scrollview) but elements in scrollview not follow autolayout constraints.Please suggest me way to implement it. Here also at...
more »

2017-03-18 11:03 (1) Answers

Passing Uiimages to view controller

So I have a custom camera called Paparazzo and the images taken from the camera are stored in a custom array called ImageSource. Now i declared that I would pass ImageSource from the camera view controller to my second view controller, but what I rea...
more »

2017-03-17 11:03 (3) Answers

Access second back camera on iphone 7

I would like to capture images using the secondary back camera on the iphone 7. How do I force the back camera to use the second lens to take images? When I print out the available devices there was only 1 back camera. Availible devices: Optional([...
more »

2017-03-17 02:03 (0) Answers

RxAlamofire - Subscription not working

I'm learning RxAlamofire and I faced following issue: in this snippet fragment of code from onNext, onError and onCompleted doesn't get invoked, as if the subscription wasn't working at all. To compare, piece of code with normal Alamofire works just ...
more »

2017-03-16 23:03 (0) Answers

Using local player in iOS to play a video from web

I am making a small website for video viewing as a project, I need to be able to play a video using the local player of the phone, in Android i managed to find the solution: intent://localhost/video.avi#Intent;action=android.intent.action.VIEW;sche...
more »

2017-03-16 17:03 (1) Answers

SubView only showing for the first time

I am building an iOS app using Swift 3, which shows a UITableView as subview when I click on a UITextField for selecting items. When I select items, I execute this code in table​View(_: did​Select​Row​At:​) function self.view.viewWithT...
more »

2017-03-16 13:03 (3) Answers

Pan gesture with boundaries limits & animations

When implementing this code from this answer: http://stackoverflow.com/a/31487087 override func viewDidLoad() { super.viewDidLoad() var gesture = UIPanGestureRecognizer(target: self, action: Selector("userDragged:")) bottomTextField.ad...
more »

2017-03-15 14:03 (1) Answers

React Native iOS App, crash on Release Mode

Hi I am facing an issue when I am releasing my app, I am using the react-native 0.39 , but I have a problem, the app works perfect when I run it as debug mode using react-native run-ios and when I run it from xCode, but when I run as release mode us...
more »

2017-03-14 23:03 (1) Answers