Tag Archives: iOS 9

iCloud Drive added But, Got Grayed-Out Folders

I added iCloud Drive to have my app save templates to iCloud. For a while it didn’t seem to load up to iCloud.

Read more ...

Amazing Revelation (for me) About Orientation Control, Multi-Tasking and iOS 9

Apple introduced multi-tasking in iOS 9, which allows two apps to run on the iPad in split screen mode, at the same time. This causes tradeoffs for engineers.

Read more ...

Get the view.tag from a UITapGesturerRecognizer tap

Firstly you create a tap gesture recognizer and then add it to the view dot. UIView dot already has the tag assigned.

UITapGestureRecognizer *tapped = [[UITapGestureRecognizer alloc] initWithTarget:self
[dot addGestureRecognizer:tapped];

Later, the problem in gotoZone: method is how to identify which UIView dot did the user tap? Here’s how we did it.

Setup a comparison and then cast the tap, associate the UIView with that tap, and voila, the row is the tag of that view.

if ([sender isKindOfClass:[UITapGestureRecognizer class]]) {
UITapGestureRecognizer *tap = (UITapGestureRecognizer *)sender;
UIView *view = tap.view;
row = view.tag;

Assigning to ‘id<>‘ from incompatible type ‘ViewController *const __strong’

Annoying warning caused in the normal creation of a delegate pattern in iOS. 

Read more ...

Finding the Location of the Cursor in UITextView, UITextField

A frequent problem for iOS engineers is to detect that the keyboard is hiding the space made for entry of text. I’ve had to solve this issue at least once in each of iOS 7, 8 and 9. This solution has not been tested with iOS 8, but it works great with iOS 9.

Read more ...