iphone - What's the best approach to change view properties due to accelerometer-value-changes? -


I want to do this: if the device runs (accelerometer value changes), then I adjust some values ​​in my view According to that movement, I want to do it.

Will I use a method in the accelerometer value every time? I believe this would be a bad idea, because they can also refresh too often.

If you are worried too frequently about changes, just use an accumulator; Use a little code that detects changes, and checks system time; If enough system time has passed then do you (possibly accumulated) change method?


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -