control reaches end of non-void function
error: control reaches end of non-void function
error: control reaches end of non-void function发生这种现象,一般是因为,非void类型的函数没有提供返回值只要在函数最后添加上
return something;//something根据你的函数返回类型进行更改
例如:-(BOOL)boolFuction{
return YES;
}
发生这种现象,一般是因为,非void类型的函数没有提供返回值只要在函数最后添加上 return something;//something根据你的函数返回类型进行更改 例如:-(BOOL)boolFuction{ return YES; }