Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can we change sectionindextitlesfortableview(A To Z Alphabet) y position programmatically?

Tags:

ios

swift

iphone

Here I am displaying Activity List city wise , so in right side of tableview A To Z letter display in tableview but I want to change y position of A To Z letter (SectionIndexTitle).I have used following 2 delegate method of UITableview.

1) sectionIndexTitles 2) sectionForSectionIndexTitle

is it possible in iPhone? Does anyone has done similar or anyone has any suggestion please suggest.

Thanks

like image 357
Bhavik Sanghavi Avatar asked Dec 18 '25 13:12

Bhavik Sanghavi


1 Answers

It's not possible if you are using 'titleForSection' method. If you want to customise frame and other attributes you can go for 'viewForHeaderInSection'.

like image 119
nikBhosale Avatar answered Dec 20 '25 03:12

nikBhosale



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!