문제

I found some answers of how you can move the cell text to the right, BUT HOW can I move the section's text to the right?

도움이 되었습니까?

해결책

If by "section's text" you mean the text in the header for the section, you'll need to switch from using tableView:titleForHeaderInSection: in your data source to supplying a custom UILabel with textAlignment set to UITextAlignmentRight via tableView:viewForHeaderInSection: in your delegate.

다른 팁

Instead of -tableView:titleForHeaderInSection:, override -tableView:viewForHeaderInSection: and return a custom view for each section. You can format it in any way you want.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top