Thursday, August 28, 2014

Using custom font in iOS

You can create custom font in Xcode using following steps :
  1. Import font type into your project (*.ttf file)
  2. Add “Fonts provided by application” key into plist of your project.
  3. Add custom font as an item array in “Fonts provided by application” key.
  4. Now, you can use font in label as :
    [lblName setFont:[UIFont fontWithName:@“CustomFontName” size:14.0]];

Tuesday, August 12, 2014


1. "A life without aim is like life without name."

2. "Beauty dulls everyday just like a flower by fraction of second."

3. "Leave each day as if it were last day of your life."

4. "The heart of a devotee is stronger than mind."

5. "The key to happiness is thinking."

6. "Lose everything but never lose your mind."

7. "I wish to remain student throughout life."

8. "If you can fake it then you can make it."

9. "If you ask me to steal something…I'll steal a Person's Mind."

10. "The similarity between intelligent and dumb people is of smile."

11. "If a person stops thinking he starts growing older."

12. "Difficult to get out of loop if the condition is Infinite."

13. "Its very complex to understand working of simple human mind."

14. "One thing that I'm affraid of is wierd mindset."

15. "An unknown person is better than known enemy."

16. "The world is coming to an end soon…"

17. "If the problem is not solved then it is again a problem!"

Wednesday, August 6, 2014

Add custom back button on navigation controller in iOS 7

if ([[[UIDevice currentDevice] systemVersion] intValue]>=7) {   

        NSLog(@"iOS 7 back button");
        UIButton *backButton = [[UIButton alloc] initWithFrame: CGRectMake(0, 0, 44.0f, 30.0f)];
        [backButton setImage:[UIImage imageNamed:@"CustomBack.png"]forState:UIControlStateNormal];
        [backButton addTarget:self action:@selector(popVC) 

        self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc
    } else{

        NSLog(@"Do nothing for iOS 6 back button");

- (void) popVC { // Pop action of custom back button

    [self.navigationController popViewControllerAnimated:YES];


Friday, August 1, 2014

Definition of God

                                        Time is God.