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

Is it possible to register a http+domain-based URL Scheme for iPhone apps, like YouTube and Maps?

I’d like to have iOS to open URLs from my domain (e.g. http://martijnthe.nl) with my app whenever the app is installed on the phone, and with Mobile Safari in case it is not. I read it is possible to create a unique protocol suffix for this and register it in the Info.plist, but Mobile Safari […]

whose view is not in the window hierarchy

Just started using Xcode 4.5 and I got this error in the console: Warning: Attempt to present < finishViewController: 0x1e56e0a0 > on < ViewController: 0x1ec3e000> whose view is not in the window hierarchy! The view is still being presented and everything in the app is working fine. Is this something new in iOS 6? This […]

In a storyboard, how do I make a custom cell for use with multiple controllers?

I’m trying to use storyboards in an app I’m working on. In the app there are Lists and Users and each contains a collection of the other (members of a list, lists owned by a user). So, accordingly, I have ListCell and UserCell classes. The goal is to have those be re-usable throughout the app […]

Is it possible to add UITableView within a UITableViewCell

Hear is just the idea what i am thinking to implement this, I want to implement book like pages, for this i want to take UITableView and rotated-90 degree and its cell by 90 degree, and now i want to subclass UITableViewCell, now within this tableview cell it is possible to add UITableview so that […]

NSUnknownKeyException : was sent to an object that is not KVC-compliant for the “player” property

I have updated my code to swift 4 in Xcode 9. Before that it was working fine. But now AVplayer is crashing at observers below is the code where it is crashing. addObserver(self, forKeyPath: “player.currentItem.duration”, options: [.new, .initial], context: &playerViewControllerKVOContext) And the log is Terminating app due to uncaught exception ‘NSUnknownKeyException’,reason: ‘[ addObserver: forKeyPath:@”player.currentItem.duration” options:5 […]

UIRefreshControl without UITableViewController

Just curious, as it doesn’t immediately seem possible, but is there a sneaky way to leverage the new iOS 6 UIRefreshControl class without using a UITableViewController subclass? I often use a UIViewController with a UITableView subview and conform to UITableViewDataSource and UITableViewDelegate rather than using a UITableViewController outright.

iOS app submission : missing 64-bit support

I sent an app yesterday for review, with no problem. I then realized that I had a very little fix to do (changing the max zoom level of a map from 19 to 18, nothing else), so I removed the binary from iTunes Connect, and tried to resubmit. Now I’m having this warning : I […]

Asynchronous downloading of images for UITableView with GCD

I’m downloading images for my uitableview asynchronously using GCD, but there is a problem – when scrolling images flicker and change all the time. I tried setting image to nil with every cell, but it doesn’t help much. When scrolling back up fast, all images are wrong. What can I do about that? Here is […]

who can tell me something about´╝Ü setTranslation: inView : and velocityInView:

This is code : – (void)handGesture:(UIPanGestureRecognizer*)recognizer{ CGPoint translation = [recognizer translationInView:recognizer.view]; recognizer.view.center = CGPointMake(translation.x + recognizer.view.center.x, translation.y + recognizer.view.center.y); [recognizer setTranslation:CGPointMake(0, 0) inView:self.view]; if (recognizer.state == UIGestureRecognizerStateEnded) { CGPoint velocity = [recognizer velocityInView:self.view]; } }

iOS Launching Settings -> Restrictions URL Scheme

I’ve recently discovered the awesome iOS5 custom Settings URL Scheme, which can be explained in detail at this great website. I’ve found this to work, directing the user to the Settings app from my application: [[UIApplication sharedApplication] openURL: [NSURL URLWithString:@”prefs:root=General”]]; But cannot seem to route directly to the Restrictions path via the path parameter: [[UIApplication […]