return a float value from a function


/ Published in: Objective C
Save to your folder(s)



Copy this code and paste it in your HTML
  1. -(float) getValue {}
  2.  
  3. it will return 0 value if -(float) getValue; is not added into the .h file;
  4.  
  5. Solution:
  6. Add -(float) getValue; in the .h file of the function definition.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.