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.
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.
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:
- 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
- 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
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.
To access swift methods of Framework you should make them public
The github project provides an example.
Originally posted on TechCrunch:
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
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.
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
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]); <pre>
For differences between Proper Subset and Subset
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
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 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