Set the toolbar up with the property you defined rather than the locally scoped variable in your example.
Change this:
UIToolbar * toolbar = [[UIToolbar alloc]initWithFrame:CGRectMake(0,[[UIScreen mainScreen]bounds].size.height - 49,[[UIScreen mainScreen] bounds].size.width, 49)];
To this:
self.toolBar = [[UIToolbar alloc]initWithFrame:CGRectMake(0,[[UIScreen mainScreen]bounds].size.height - 49,[[UIScreen mainScreen] bounds].size.width, 49)];