Code cleanup

1. Code cleanup
2. Delegate (protocol) without NSObject, if there is no delegate, you can get Crash!
3. Removed pointer for CGFloat, you can get a lot of problems in debugger.

another objc guidelines code cleanup.