How to make UILabel look engraved as a section title in a UITableView

I have a UITableView with a view in the title. This view has a striped background and contains a UILabel. I want UILabel text to look like section heading text. How can I achieve this?

+4
source share
2 answers

This worked for me:

label.font = [UIFont boldSystemFontOfSize:label.font.pointSize]; label.textColor = [UIColor darkGrayColor]; label.shadowColor = [UIColor whiteColor]; label.shadowOffset = CGSizeMake(0.0, 1.0); 
+5
source

Try changing the following:

 label.shadowColor = [UIColor blackColor]; label.shadowOffset = CGSizeMake(0.0, 1.0); 
+2
source

Source: https://habr.com/ru/post/1310804/


All Articles