Hello, I’m trying to rotate the text inside of a label 90 degrees, and I haven’t been able to successfully do so. I tried Googling how others might have solved this, and I found this:
[*yourlabelname* setTransform:CGAffineTransformMakeRotation(-M_PI / 2)];
I did change the yourlabelname with what i named the IBOutlet I wanted to rotate, but when I did, I got 6 errors in Xcode that said:
Consecutive declarations on a line must be separated by ';'
Expected '(' in argument list of function declaration
Expected '{' in body of function declaration
Expected 'func' keyword in instance method declaration
Expected declaration
Invalid redeclaration of 'gridView3()'
gridView3 is the name of the IBOutlet function I made. So I don’t know what was wrong or how to fix it. I tried searching for a similar topic here but couldn’t find one. If I skipped over it, I’m sorry to be posting this.