static GCHelper *sharedHelper =nil;
+ (GCHelper *) sharedInstance
{
@synchronized ([GCHelper class])
{
If (!shareHelper)
{
[[self alloc] init];
}
return nil;
}
I have it to run gamecenter but it gives me an error of "expression result unused" how do i fix this
You're not actually assigning the result of [[self alloc] init]
to shareHelper
, which you almost certainly mean to do. This warning is pointing out your mistake.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.