Code for my UILabel:
//Create the title of the tab here
UILabel *title=[[UILabel alloc] initWithFrame:CGRectMake(0, 0, 500, 500)];
title.text=@"Useful Websites";
title.textAlignment=UITextAlignmentCenter;
[self.view addSubview:title];
I know that the assigner UITextAlignmentCenter is deprecated from iOS6. Could you please help with the correct assigner/attribute to center a label in Xcode 5 and iOS7? Thanks.