I am getting the Expected ‘:’ before ‘.’ token error with this piece of code:
[SecondViewController.view setNeedsDisplay];
.h:
#import <UIKit/UIKit.h>
#define AS(A,B) [(A) stringByAppendingString:(B)]
@interface SecondViewController : UIViewController{
.m:
[SecondViewController.view setNeedsDisplay];
Any hints ?
And if your wondering i am trying to Refresh the view
You are actually trying to access the Class object for your controller and not an instance object (which is what view property is defined on). Additionally setNeedsDisplay: needs a boolean parameter.
So either use this syntax if it’s called from within the view controller:
Or this syntax if it’s from somewhere else: