You are setting image on button instead of this you need to set backgroundImage of UIButton then your title will be displayed Change the code like this backButton=UIButton buttonWithType:UIButtonTypeCustom; backButton setBackgroundImage:UIImage imageNamed:@"backbutton. Png" forState:UIControlStateNormal; backButton setBackgroundImage:UIImage imageNamed:@"backbutton. Png" forState:UIControlStateSelected; backButton addTarget:self action:@selector(customBack) forControlEvents:UIControlEventTouchUpInside; backButton setFrame:CGRectMake(0,0,64,32); backButton setTitleColor:UIColor whiteColor forState:UIControlStateNormal; backButton setTitleColor:UIColor whiteColor forState:UIControlStateSelected; backButton setTitle:@"Encameo" forState:UIControlStateNormal; backButton setTitle:@"Encameo" forState:UIControlStateSelected; self.navigationItem.
LeftBarButtonItem=UIBarButtonItem alloc initWithCustomView: backButton.
You are setting image on button instead of this you need to set backgroundImage of UIButton then your title will be displayed. Change the code like this backButton=UIButton buttonWithType:UIButtonTypeCustom; backButton setBackgroundImage:UIImage imageNamed:@"backbutton. Png" forState:UIControlStateNormal; backButton setBackgroundImage:UIImage imageNamed:@"backbutton.
Png" forState:UIControlStateSelected; backButton addTarget:self action:@selector(customBack) forControlEvents:UIControlEventTouchUpInside; backButton setFrame:CGRectMake(0,0,64,32); backButton setTitleColor:UIColor whiteColor forState:UIControlStateNormal; backButton setTitleColor:UIColor whiteColor forState:UIControlStateSelected; backButton setTitle:@"Encameo" forState:UIControlStateNormal; backButton setTitle:@"Encameo" forState:UIControlStateSelected; self.navigationItem. LeftBarButtonItem=UIBarButtonItem alloc initWithCustomView: backButton.
Thanks, it worked like a charm...knew this solution..had forgotten! – Ahsan Jul 20 at 18:45.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.