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

iOS9 Untrusted Enterprise Developer with no option to trust

This is not a duplicate of Untrusted App Developer. Since iOS9 there is no option to trust an enterprise build. Has anyone found a workaround?

NSURLConnection and Basic HTTP Authentication in iOS

I need to invoke an initial GET HTTP request with Basic Authentication. This would be the first time the request is sent to the server and I already have the username & password so there’s no need for a challenge from the server for authorization. First question: Does NSURLConnection have to be set as synchronous […]

iOS app with ARC, find who is owner of an object

I’m writing an App that uses ARC and that seems to have some memory leaks at the moment. Googling I found some hints on how to use the Inspector. In there I can see heaps of allocations of instances of some classes and I can also see some call stack on how the object was […]

Dismiss keyboard by touching background of UITableView

I have a UITableView with UITextFields as cells. I would like to dismiss the keyboard when the background of the UITableView is touched. I’m trying to do this by creating a UIButton the size of the UITableView and placing it behind the UITableView. The only problem is the UIButton is catching all the touches even […]

Show screen on first launch only in iOS

Tweetbot and Clear show’s on the first start of the app a small tutorial screen how the app works. The screen with the small tutorial only pops up on the first start up of the app (1 time) How and with what can i make a similar thing? Can anyone push me in the right […]

UITableView Cell selected Color?

I have created a custom UITableViewCell. The table view is showing data fine. What I am stuck in is when user touches cell of tableview, then I want to show the background color of the cell other than the default [blue color] values for highlighting the selection of cell. I use this code but nothing […]

How do I locate the CGRect for a substring of text in a UILabel?

For a given NSRange, I’d like to find a CGRect in a UILabel that corresponds to the glyphs of that NSRange. For example, I’d like to find the CGRect that contains the word “dog” in the sentence “The quick brown fox jumps over the lazy dog.” The trick is, the UILabel has multiple lines, and […]

iOS Autolayout – How to set two different distances between views, depends on the screen height

I know I’m missing something, because this has to be something easy to achieve. My problem is that I have in my “loading screen” (the one that appears right after the splash) an UIImageView with two different images for 3.5″ and 4″ size screen. In a certain place of that images, I put one UIActivityIndicator, […]

How to free a component in Android / iOS

I dynamically create a TEdit on a form in Android: edit := TEdit.Create(Self); I want to free it using edit.Free, but it just still on form. This code works fine on win32, but failed on Android. The same seems to happen not only for TEdit but for any component using Android or iOS.

Animating an image view to slide upwards

I am attempting to make an image view (logo below) slide upwards by 100 pixels. I am using this code, but nothing happens at all: [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:3]; = CGPointMake(, – 100); [UIView commitAnimations]; This code is in the viewDidLoad method. Specifically, the = … is not functioning. Other things […]