** Pastebin PRO Accounts Easter Special ** Get 40% discount for a limited time only! Click Here to check it out ;-)Want more features on Pastebin? Sign Up, it's FREE!


By: a guest on Mar 7th, 2013  |  syntax: None  |  size: 0.23 KB  |  views: 23  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. char fourChar[4];
  2.     int* value = (int*)(&fourChar);
  3.     *value = (int)floatValueFromSlider;  // or the simple values from your picker
  4.     [appNote sendCharArray:fourChar];    // assuming the method wants a char[] of only 4 characters
clone this paste RAW Paste Data