ArchiveMarch 2012

How to manage application when orientation changes?

H

The problem is that when you rotate the device then (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation Method gets called but when you go to the next screen then this method does not get called. if you rotate your device again then that method gets called. So if you want to change next screen orientation as device current orientation, then check the...

Welcome

W

Welcome to Nanostuffs Blog ! This is a portal exclusive for Nanostuffs Brightest Minds to share their technical, personal, and every kind of experience on web. We look forward to keeping you informed with timely articles on wide range of topics, such as: iPhone/iPad Development Android Development Salesforce Customization/Apex Programming PHP Insights .NET Brainstorms Unity 3D Challenges HTML5...

Using Schema.getGlobalDescribe() to get list of all fields in Salesforce Apex

U

I had one dropdown that had options – Lead, Account, Contact, Opportunities and some custom objects. Upon selection of any of this object, all the respective object’s standard and custom fields should be populated in another dropdown. This is how I achieved it: Map<String, Schema.SObjectField> objectFields = Schema.getGlobalDescribe().get(‘Account’).getDescribe()...

How to Create UILocalNotification, repeating every minute ?

H

There are two types of notifications in iOS, One is Local notification & other is PUsh notification. Added code to create Local notification. // creating notification NSDate *newDate = [NSDate dateWithTimeIntervalSinceNow:60]; // where 60 = seconds, so add your seconds here Class cls = NSClassFromString(@”UILocalNotification”); if (cls != nil) { UILocalNotification *notification =...

Category