ios fixes for warnings.

- made sure all function with BOOL return types return a BOOL.
- updated deprecated function.