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

iOS7: How to add a fixed Search Bar like Contacts on iOS7?

After I search a lot of questions and answers, no good result. So I have to ask it here: I want to add a Search Bar below the navigation bar. This search bar should be fixed. Just like contacts on iOS7 below. Can any one help me to figure it out?

Google SignIn Cocoapod deprecated

How to implement Google SignIn in iOS app as now Google pod is deprecated ? Using the deprecated pod is giving : Framework not found GoogleAppUtilities

Xamarin app crashes on startup on device, works fine in simulator

Would appreciate any suggestions, using SDK6.1 with Xcode 5 on OS 10.8 The app crashes right after the splash and does not get to the debugger at all. this happens on the TestFlight released version as well. Tried on another computer with same results. Even tried to create a new sample Monotouch app and same […]

swift optional chaining with cast

The code below highlights a problem I’m having combining optional chaining and casts with Apple’s swift language import Foundation import CoreData class MyExample { var detailItem: NSManagedObject? func example() { //In the actual implementation it is assigned to a UITableViewCell textLabel.text with the same result. let name: String = self.detailItem?.valueForKey(“name”) as String } } The […]

iOS: Accessibility Label for CALayer

I want to add accessibilityLabel for some of my CALayer’s. Here is the example: CALayer *testLayer = [CALayer layer]; [self.view.layer addSublayer:testLayer]; testLayer.backgroundColor = [UIColor purpleColor].CGColor; testLayer.isAccessibilityElement = YES; testLayer.accessibilityLabel = @”Some text”; testLayer.frame = CGRectMake(0, 300, 100, 100); This approach doesn’t work for me. Is it possible to make accessibility working for CALayers? I don’t […]

Firebase IOS push notification doesn't work when app is closed

Firebase IOS push notification doest not work when app is closed. I have followed all the steps as in documentation

UIPageViewController direction only forward

The goal is to create a UIPageViewController that can only navigate forward. I am using a data source to provide the content for the UIPageViewController. The direction is set to UIPageViewControllerNavigationDirectionForward, the transition style is UIPageViewControllerTransitionStyleScroll. The implementation of – (UIViewController *)pageViewController:(UIPageViewController *)pageViewController viewControllerAfterViewController:(UIViewController *)viewController { // returns the next view controller } returns the […]

Store data locally IOS

I have a UIViewController for user to input their data and submit to our ASP.NET Webapi. there are about 40 textField and other controls. Is there any way i can save the input locally. the data will not be clear until user click the submit button. I want the data still there even restart the […]

What's the meaning of “App must be built for iOS devices with Retina display”

Apple announced that recently: ‘Starting May 1, new apps and app updates submitted to the App Store must be built for iOS devices with Retina display and iPhone apps must also support the 4-inch display on iPhone 5’. I wonder what’s the meaning of “App must be built for iOS devices with Retina display”? Is […]

Making synchronous calls with RestKit

I have an objectMapping for my entity User RKObjectMapping* userMapping = [RKObjectMapping mappingForClass:[User class]]; [userMapping mapKeyPath:@”first_name” toAttribute:@”firstName”]; [userMapping mapKeyPath:@”last_name” toAttribute:@”lastName”]; [manager.mappingProvider setMapping:userMapping forKeyPath:@”users”]; [manager.mappingProvider setSerializationMapping:[userMapping inverseMapping] forClass:[User class]]; And I want to save his profile when the application goes background: – (void)applicationDidEnterBackground:(UIApplication *)application { [[RKObjectManager sharedManager] putObject:currentUser delegate:self]; } But it won’t let me run […]