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

Detecting iOS UIDevice orientation

I need to detect when the device is in portrait orientation so that I can fire off a special animation. But I do not want my view to autorotate. How do I override a view autorotating when the device is rotated to portrait? My app only needs to display it’s view in landscape but it […]

Loading an image into UIImage asynchronously

I’m developing an iOS 4 application with iOS 5.0 SDK and XCode 4.2. I have to show some post blogs into a UITableView. When I have retreived all web service data, I use this method to create an UITableViewCell: – (BlogTableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString* cellIdentifier = @”BlogCell”; BlogTableViewCell* cell = [tableView […]

iphone sdk CGAffineTransform getting the angle of rotation of an object

how do i calculate the angle of rotation for any given object (ie a uiimageview)?

Why NSDateFormatter is returning null for a 19/10/2014 in a Brazilian time zone?

NSString *dateString = @”19/10/2014″; NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setDateFormat:@”dd/MM/yyyy”]; NSDate *myDate = [dateFormatter dateFromString:dateString]; Why myDate is null for this specific date (19/10/2014)?? If i change the dateString to @”25/10/2014″, dateFormatter return the date correctly… What is wrong with my code? * This code returns null when my iPhone time zone is […]

How to add a push pin to a MKMapView(IOS) when touching?

I had to get the coordonate of a point where the user touch on a MKMapView. I’m not working with the Interface Builder. Can you give me one example or a link. Thanks a lot

Get the current displaying UIViewController on the screen in AppDelegate.m

The current UIViewController on the screen need to response to push-notifications from APNs, by setting some badge views. But how could I get the UIViewController in methodapplication:didReceiveRemoteNotification: of AppDelegate.m? I tried use self.window.rootViewController to get the current displaying UIViewController, it may be a UINavigationViewController or some other kind of view controller. And I find out […]

iOS devices as web server

I saw there are several apps on App Store that allow other computers to make a http connection to the iPhone/iPad devices to transfer files. It seemed like a web service is running on the iOS device. Just curious how is it done /what class was used? Thanks.

Clarify the Firebase connections

I am a little confused about the Firebase pricing model, special concern is the connections or more precisely concurrent connections. Let’s have an example of a mobile app for iOS called FanZONE: User will create groups during football matches. They will comment on the actual game and the comments are immediately displayed on each members […]

iBeacon: didRangeBeacons stops getting called, must reset device for it to work again

I am using a custom BeaconManager delegate so that beacon ranging is not determined by the life-cycle of the view controller. Everything works great but every once in a while (1-2 days) beacon ranging will stop working and didRangeBeacons will never get called. The only way to fix this is for me to reset my […]

What is the meaning of the “no index path for table cell being reused” message in iOS 6/7?

Since starting to compile my app with iOS 6 (and since also iOS 7) I’ve started seeing this message. I know that the way that UITableViews go about managing cells is different in iOS 6 but I haven’t needed to modify my code for it to keep working. But I’m concerned this message may point […]