Skip to content

Bizarre Slow motion transitions in iOS application

When I was doing some ugly hacks on one of the apps I was working to test a feature, my app entirely worked in a slow motion.

Since I was doing some hacks with UIApplication subclass and associated methods, I felt that these changes were causing the application to behave in a slow motion.

Then even removing my custom UIApplication did not help me in anyway. So I was reminded of a similar situation few months ago and me wasting lot of time on this.

The problem was I have enabled a hotkey COMMAND+T without intention.

You can revert to normal behavior by hitting the same combo again.

Quotes that inspire me

These quotes help me with keeping up my life afresh amidst all the events that try to drag me down. It is a living list..

1.Any stubborn challenge was simply an obstacle to be conquered; the harder it was, the more it drew my attention until I won.


Cost cutting strategy for location based service business

I use Freshmenu app and Ola App frequently.


One common problem the delivery boys face (never seen a girl)  is identifying the location of the delivery/pickup which is key part of the customer service experience.

The amount lost for the customer and delivery boy (the organization they belong to) is around 1-3  per delivery.

Out of all the freshmenu deliveries I have received and all the Ola commute I had, the delivery boy/driver and I had to call each other on all occasions to point the address where I am. But in both the cases either my address was collected automatically or I have explicitly sent my address  through the mobile App.



  1. The customer’s address is passed as a text to the the server and further passed to the delivery boy.


  1. The customer’s current location is passed as GPS coordinates to the server and further the customer’s location rendered in the Maps application of the driver.

Both the approaches has got a problem.

Freshmenu’s approach has a problem for the delivery boys with the direction to reach the destination. The delivery folks calls you once from their pickup point and then somewhere near your locality because they are not familiar with the locality where they deliver. (Which is acceptable)

In three of my Ola trips, my the location was not  identified accurately by the driver. All of them have told that the location was not accurate. Either I had to walk some 100 metres to go to a landmark which I could quote them or talk to them over phone and ask them to come to my location.Ola’s approach suffers from a problem with rendering the location of the customer or capturing the location accurately using GPS or a problem with my Phone.


A combination of both would help the people who are providing service with identifying the location without ambiguity and save money for both of them. Though Physical address can not be provided when you need Ola or Uber from an arbitrary location.

Food for thought:

Ola problem with Billing

Android App Review – ninjacart

I had a necessity to purchase some fruits. I remembered a coupon I was provided with a parking ticket by Ninjacart.


I downloaded the app in my android phone and ventured to purchase some fruits.

The app prompted me to register. But I could not register after repeated attempts due to no mobile network connectivity to verify the phone number. Then I went out of my house and thought of trying again. I was again disappointed by the app now. I provided my Registration details already. But on moving to a different app and upon return to the Ninjacart app, the app failed to store my registration details and this happened for 4 times. Finally I realized the problem was with the App not with my cellular connection. Even at a place where there is a good cellular connection, the app was reporting that there was no connectivity.


Notes for Product Team: (I am alien to Android App development)

Two potential bugs:

  1. When ever the activity that handles the registration goes to the Stopped State (onPaused() –> onStop()), and returns to Resumed state,the form is cleared/refreshed. Or may be the activity is created afresh after app comes back to focus
  2. There is a major problem with the way network connection detection is done. Some delegation mechanism must be used for the reporting the changes in cellular connection status. This might be failing to report the changes appropriately.


Phone Model: Lenovo S660

Android Version: 4.4.2

Framework Development with Objective C and Swift

Provided below are the learnings I had as part of creating Frameworks with Objective-C and Swift Code.

Learning 1 (No bridging header required for interoperability for the Framework Targets)

There is no support for swift bridging headers in Xcode Framework Projects.

But how do you write Objective-C and Swift in same Project?

Just import your framework as a module in your swift class where you wanted to use the objective C created class.

Even if you try to add the bridging header manually, in a framework project, Xcode spits this below message.

“using bridging headers with framework targets is unsupported”

Digging Apple’s documentation gave the idea that, you do not need a Bridging header in Frameworks. You need bridging headers only for applications.

Learning 2

Learning 3

To access swift methods of  Framework you should make them public 

The github project provides an example.

Personalizing The Factory

Featured Image -- 1442

Originally posted on TechCrunch:

[tc_contributor_byline slug=”jose-ferreira”]

Winston Churchill famously said, “Democracy is the worst form of government, except all the others that have been tried.”

Until recently, the same could be said for the factory model of education. Imported from Prussia and implemented at the urging of education reformer Horace Mann, the factory model puts kids into age-based classrooms and uses seat time to determine when they’re ready to move on to the next level.

In many ways, it’s an awful system; rigid, arbitrary and impersonal. But it’s also responsible for almost every modern innovation we rely on today. The factory model reduced the per-student cost of education sufficiently so that wealthy countries could, for the first time ever, provide free and compulsory K-12 education to all children.

Wherever the model doesn’t exist, the populace desperately wants it. Modern medicine, housing, entertainment, transportation, communication, the Internet and everything else in the modern world…

View original 966 more words

Difference between Set (Swift ) and NSSet

One major difference I have observed between Set introduced as part of Swift and NSSet which is already available in Foundation framework is the way isSubSet method works in both.

NSSet does not bother the difference between a proper subset and a subset. But Set in Swift has method called

isStrictSubsetOf  in addition to isSubsetOf  which captures the scenario which Foundation fails to.

Swift Set

var set1 = Set(["r","a","m"])
var set2 = Set(["r","a","m"])

var bool = set1.isSubsetOf(set2) as Bool
var bool1 = set1.isStrictSubsetOf(set2) as Bool

 bool = set2.isStrictSubsetOf(set2) as Bool


Foundation NSSet 

NSSet *set1 = [NSSet setWithObjects:@"a", @"b", @"c", nil];

NSSet *set3 = [NSSet setWithObjects:@"a", @"b", @"c", nil];;

NSLog(@"isEqual :%d", [set1 isEqualToSet:set3]);

NSLog(@"isSubSet :%d", [set1 isSubsetOfSet:set1]);

For differences between Proper Subset and Subset

Warning :-Presenting view controllers on detached view controllers is discouraged

This log message I received when I was running my app  and it led to a strange UI glitch, where one of my  view in the application lost all of its subviews.


This error occurred once the modal view controller was dismissed.


I had legacy code from the days of iOS 4.0. The view which was losing its subviews is a View controlled  by a UIViewController. So this view controller was not added as a ChildViewController of the Parent Controller.


Added the viewcontroller responsible for this problem as a child of the parent controller and the problem was resolved

How to Extract the Images From Any App in the App Store

Originally posted on Objective C#:


Recently I discovered how incredibly easy it to extract the original, full-resolution images (and other resource files like video, audio, .plist files) from any app in the App Store, without jailbreaking, and without special software. For iOS developers, this can give a fascinating look at the insides of an app. As always, be sure to do this for learning purposes only and respect all apps’ intellectual property.

View original 214 more words

The Fallacy Of Android-First

Featured Image -- 1387


The cost of Fragmentation is so high when compared to iOS and this will lead to user frustration and brand name gets tarnished

Originally posted on TechCrunch:

Editor’s note:Dave Feldman is the co-founder of Emu. Previously he was Entrepreneur in Residence for CrunchFund, led the 2011 redesign of TechCrunch, and managed the design team for Yahoo! Messenger. Emu for iPhone is available now.

In late 2012, we decided to launch Emu on Android first. It went against the conventional wisdom at the time, but we saw a real advantage. Sixteen months later, we’re back on iOS: Emu for iPhone launched on April 2. Here’s why Android didn’t work out for us and why you should think carefully before going Android-first.

To build a messaging app on iPhone, you have to create your own communication channel — essentially an IM service. But on Android, you can simply replace the built-in Messages app, while still using the underlying SMS/MMS medium. You save yourself the effort of building a communication service. And, your users needn’t invite their friends:…

View original 2,004 more words


Get every new post delivered to your Inbox.