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

Understanding ibeacon distancing

Trying to grasp a basic concept of how distancing with ibeacon (beacon / bluetooth le) can work. Is there any true documentation on how far exactly an ibeacon can measure. Lets say I am 300 feet away…is it possible for an ibeacon to detect this?

Fatal error: unexpectedly found nil while unwrapping an Optional values

This question already has an answer here: What does “fatal error: unexpectedly found nil while unwrapping an Optional value” mean? 4 answers

How can I scan barcodes on iOS?

How can I simply scan barcodes on iPhone and/or iPad?

UIAlertView addSubview in iOS7

Adding some controls to UIAlertView was deprecated in iOS7 using addSubview method. As I know Apple promised to add contentView property. iOS 7 is released now and I see that this property is not added. That is why I search for some custom solution with ability to add progress bar to this alertView. Something for […]

Adding Core Data to existing iPhone project

I’d like to add core data to an existing iPhone project, but I still get a lot of compile errors: – NSManagedObjectContext undeclared – Expected specifier-qualifier-list before ‘NSManagedObjectModel’ – … I already added the Core Data Framework to the target (right click on my project under “Targets”, “Add” – “Existing Frameworks”, “CoreData.framework”). My header-file: NSManagedObjectModel […]

Array extension to remove object by value

extension Array { func removeObject<T where T : Equatable>(object: T) { var index = find(self, object) self.removeAtIndex(index) } } However, I get an error on var index = find(self, object) ‘T’ is not convertible to ‘T’ I also tried with this method signature: func removeObject(object: AnyObject), however, I get the same error: ‘AnyObject’ is not […]

NSNotificationCenter addObserver in Swift

How do you add an observer in Swift to the default notification center? I’m trying to port this line of code that sends a notification when the battery level changes. [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(batteryLevelChanged:) name:UIDeviceBatteryLevelDidChangeNotification object:nil];

how can I access my swift project files from pod file which is in objective c?

I am using firebase chat SDK which is in objective c and now I need to access swift files in this SDK. Please help me out.

Determine on iPhone if user has enabled push notifications

I’m looking for a way to determine if the user has, via settings, enabled or disabled their push notifications for my application.

How do I associate file types with an iPhone application?

On the subject of associating your iPhone app with file types. In this informative question I learned that apps could be associated with custom URL protocols. That was almost one year ago and since then Apple introduced ‘Document Support’ which goes a step further and allows apps to associate with file types. There is a […]