English 中文(简体)
改变精炼控制部分的字体
原标题:Changing the font for selected segment in uisegmentedcontrol

I m noticing that on one of my segmentedcontrols, it is hard to see which segment is selected. I was thinking I could bold the font, or increase the font size just slightly. I m trying this, but it s not working:

UIFont *boldFont = [UIFont boldSystemFontOfSize:16.0];
    NSDictionary *fontDict = [[NSDictionary alloc] initWithObjectsAndKeys:boldFont, UITextAttributeFont, nil];
    [_tableSegmentedControl setTitleTextAttributes:fontDict forState:UIControlStateSelected];

My text looks the same in both segments of the segment control. Do I need to do something like this instead? Change textColor in UISegmentedcontrol

我希望在可能时增加外观的情况下,在5号SOS采取更为容易的办法。 感谢。

问题回答

i m not sure but i think [UIFont boldSystemFontOfSize:16.0f]; f was missing. try this and tell me

此外,国家统计局表示,检查价值是否贴现的字典价值。

其他用途

NSDictionary *attributes = [NSDictionary dictionaryWithObject:font forKey:UITextAttributeFont]; this i have seen some times prblems are due to this. i dont know why this is.





相关问题
Code sign Error

I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

• 如何将搜查线重新定位?

我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。

热门标签