I have made a segment control.
In that my title is too much long .. so it is not shown properly..
Can Anyone tell me how to fix this problem??
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
@rathodrc:
It is not possible to change the font size for the segmented control but there is a work around for this, if you have fixed segment titles.
For Example:
Say if title for each segment is fixed that segmentedControl with 3 segments have titles(say SegA,SegB and SegC)
Then you can create images for each segment of segmentedcontrol with Segment title on it.
There you can keep larger or smaller fonts as per your requirement while creating images with text written on the image itself and then simply set images for each of the segments in the XIB.
Keep in mind, the image size should be exactly same as width and height of segment.
NOTE:
If you give the segment titles dynamically and it keeps on changes dynamically in your app then it is not possible.
Hope this helps you. 🙂