mercredi 16 novembre 2016

Create a search bar next to label in objective c

I'm new to iOS development. I created a label and search bar by using the following codes.

UILabel* lbNavTitle = [[UILabel alloc] initWithFrame:CGRectMake(0,40,320,40)];

UISearchBar *searchBar = [UISearchBar new];

But I want search bar placed to the right of label. How can I achieve this through coding. Thanks in advance.

Aucun commentaire:

Enregistrer un commentaire