iOS Development is easy with XCode, Swift3, UITableView, cocatouch, let's build iPhone, iPad and Macbook Applications.

UIWebView: How to insert text in a HTML text field

I’ve an UIWebView where a mobile web form URL is loaded. In a method in my application, I would like to insert some text into the HTML text field in the UIWebView which has focus. How can I do that? Is there a way to get the ID of the HTML element which has focus […]

When the app is deleted what happens to the values stored in NSUserDefaults?

I have a little question regarding NSUserDefaults. When the application is deleted, what happens to the values stored in the NSUserDefaults? Do they get deleted as well? When I remove a app and reinstall it from the app store the previous NSUserDefaults values are loaded?

How to open Location Services from iOS application for iOS 11 beta?

if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 10.0) { NSURL *URL = [NSURL URLWithString:@”App-prefs:root=Privacy&path=LOCATION”]; [[UIApplication sharedApplication] openURL:URL options:@{} completionHandler:nil]; } This code works fine for iOS 10.0 to 10.3.3 but when I run this code for iOS 11(beta), application goes into background but Setting page doesn’t get opened.

How to launch app in landscape? (frustrated)

this issue is supposed to be a simple one… i have googled a lot about it and i have tried all the setups on my project. the thing is i am working on a project that is not mine. the app launched from the app delegate and then i am adding aUIViewController (without XIB file) […]

installing two apps that have same bundle identifier

I develop an app and then i made two version of it. one is free and second is paid. Now i want to use same bundle identifier two install both app on one iphone, or ipod. how can i do this. and will it work fine when i submit it two app store. What method […]

View Position Resets with bringSubviewToFront

Using Autolayout, everytime I call bringSubviewToFront, the UIView resets. I tried setting an original position with txtViewPosition: txtViewPosition = CGRect(x: txtView.frame.origin.x, y: txtView.frame.origin.y, width: txtView.frame.size.width, height: txtView.frame.size.height) containerView.bringSubviewToFront(txtView) txtView.frame = txtViewPosition! It looks like the view is the correct position, but it is still showing up in its original spot (set in AutoLayout). Update (UIView […]

RCTBatchedBridge.m Error: Invalid data message – all must be length:%zd. React Native, iOS simulator

I’m using react-native-oauth and getting this error (see red image at bottom) when trying to authorise. I’ve searched and found only this similar unanswered question. I looked into the source and found where the error is raised on line 954 and it seems it’s because moduleIDs.count should equal methodIDs.count and paramsArrays.count : if (RCT_DEBUG && […]

How to create a UITableView with editable components?

I was wondering how to create a UITableView with editable components. If you look at the network settings in the iphone, where you can enter the static ip address, etc. How to do this ? Thanks

How can I add a gradient that spans two views?

I know how to do (1) but how can I do (2)? UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 50)]; CAGradientLayer *gradient = [CAGradientLayer layer]; gradient.frame = view.bounds; gradient.colors = @[(id)[UIColor blueColor].CGColor, (id)[UIColor redColor].CGColor]; [view.layer insertSublayer:gradient atIndex:0];

Export & Import Documents using iCloud in IOS

I am developing an app that makes user to export core data records into an document using iCloud Drive/iCloud Documents/iCloud Kit and he can able to import and access those document at another device. I mean Export/Import of documents within devices that are using same application. Documents can be identified by unique document name for […]