Igor Delovski Board Forum Index Igor Delovski Board
My Own Personal Slashdot!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Hardware (Accelerometer, Battery info, ...)

 
Post new topic   Reply to topic    Igor Delovski Board Forum Index -> Mac Cocoa
Mac Cocoa  
Author Message
XNote
Kapetan


Joined: 16 Jun 2006
Posts: 532

PostPosted: Thu May 07, 2009 3:04 pm    Post subject: Hardware (Accelerometer, Battery info, ...) Reply with quote

iPhone Accelerometer Simulator

"The ideea is pretty simple, I made a small http server what serves the x,y,z
acceleration values. I admit I was lazy to write the whole http server so I used
the "simple http server", what is the base of the simulator. You can download
it ..."
Back to top
View user's profile Send private message
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Fri Jun 19, 2009 11:55 pm    Post subject: Reply with quote

so - How can I differentiate a Shake vs a Tilt on the iPhone

"I would also like to implement "Shake for a random page", but cannot figu-
re out how to do the logic for differentiating a shake motion and a x-axis tilt."
Back to top
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Mon Feb 08, 2010 10:08 pm    Post subject: Reply with quote

so - Help needed Using C File In Project, iPhone

"There is an apple file that I would like to use parts of for my app. It is called
BatteryTimeRemaining.c."
Back to top
View user's profile Send private message Visit poster's website
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3136
Location: Europe

PostPosted: Tue Apr 20, 2010 2:03 pm    Post subject: Reply with quote

SO - How to detect iPhone movement in space using accelerometer?

"I am trying to make an application that would detect what kind of shape you
made with your iPhone using accelerometer. As an example, if you draw a
circle with your hand holding the iPhone, the app would be able to redraw it
on the screen."
Back to top
View user's profile Send private message
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Tue May 25, 2010 10:28 pm    Post subject: Reply with quote

iphonesdkdev.blogspot.com - Source Code: Get Hardware Info of iPhone

"This is a collection of open source codes to print out the hardware info
of iPhone. If you know more, please post link here in comment and I will
update it.

Battery Info source (requires IOKit header files from SimulatorSDK)
http://forums.macrumors.com/showthread.php?t=474628

Memory & CPU
http://furbo.org/2007/08/21/what-the-iphone-specs-dont-tell-you/

Process
Landon Fuller, iphonesdk@googlegroups.com"
Back to top
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Tue Jun 01, 2010 12:36 am    Post subject: Reply with quote

MF - iPad device orientation is null?

"The Simulator seems to always return 0, regardless of it's orientation."
Back to top
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Thu Oct 14, 2010 8:13 pm    Post subject: Reply with quote

forums.bignerdranch.com - Suggestion for next edition of book

"iPad, iPhone 4 and iTouch 4th gen. all have 12-bit resolution for their ac-
celerometer data. Legacy devices have an 8-bit resolution. Something to
consider if your filters are causing issues on older devices."
Back to top
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Wed Oct 20, 2010 11:32 am    Post subject: Reply with quote

Parade of Rain - Gyroscope all the way!

"When you calibrate a device off of the accelerometer there is a ‘gymbal
lock’-esque problem when the device is 100% vertical. Any horizontal tilt
cannot be detected because you’ve lost this degree of freedom since one
of your tilt axis is aligned with gravity (what the accelerometer works off
of). When the gyroscope was announced I naively thought, “Hey we can
probably make the perfect tilt controls now that work in any position!” I
got the ‘any position’ part down, but it was far from perfect."
Back to top
View user's profile Send private message Visit poster's website
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3136
Location: Europe

PostPosted: Sat Mar 23, 2013 4:15 am    Post subject: Reply with quote

programatically measuring carrier's signal strength in iPhone device

http://stackoverflow.com/questions/4954389/programatically-measuring-carriers-signal-strength-in-iphone-device
Back to top
View user's profile Send private message
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3136
Location: Europe

PostPosted: Tue Nov 27, 2018 9:45 pm    Post subject: Reply with quote

a - Getting Raw Accelerometer Events

"Retrieve data from the onboard accelerometers."
Back to top
View user's profile Send private message
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3136
Location: Europe

PostPosted: Fri Dec 21, 2018 12:02 am    Post subject: Reply with quote

so - AVCaptureVideoPreviewLayer orientation - need landscape

"For 2016, skip down to the stackoverflow.com/a/36575423/294884 . As with
many computing topics, API details change over the years. With autolayout
and so on, the older answers here (which were superb at the time) are not
right now."
Back to top
View user's profile Send private message
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3136
Location: Europe

PostPosted: Sun Mar 10, 2019 1:07 pm    Post subject: Reply with quote

r - https://old.reddit.com/r/iOSProgramming/comments/az6gbn/starting_to_go_crazy_how_do_you_present_a_view/

Starting to go crazy, how do you present a view controller, allow it to rotate to landscape, but not have the presenting view controller rotate as well? Won't work with form sheet or custom presentations.


So while not necessarily the cleanest, the end result speaks for itself, and it's transparent to the end-user, so I'd consider that a success! The tl;dr is to do the window nesting solution from Update 2 (by @donbytqi) and then reset the orientation when you dismiss the nested view controller with the solution in Update 3. So I think that should do it, unless I'm overlooking something!
Tested on iOS 11 and iOS 12.
Back to top
View user's profile Send private message
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3136
Location: Europe

PostPosted: Sun May 05, 2019 8:44 pm    Post subject: Reply with quote

so - Cleanest way of capturing volume up/down button press on iOS 8

"First add AVFoundation and MediaPlayer Framework and then you can use
below code to detect up/down button press, ..."
Back to top
View user's profile Send private message
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Thu May 09, 2019 11:35 am    Post subject: Reply with quote

apple - UIFeedbackGenerator

"Haptic feedback provides a tactile response, such as a tap, that draws
attention and reinforces both actions and events. While many system-provided
interface elements (for example, pickers, switches, and sliders) automatically
provide haptic feedback, you can use feedback generators to add your own
feedback to custom views and controls."
Back to top
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Mon Sep 23, 2019 11:30 am    Post subject: Reply with quote

iphonehacks.com - iOS 11 Draining Your iPhone's Battery? Here's How to Fix It

"If your iPhone's battery draining faster after installing the iOS 11 - iOS 11.4.1
update as some readers are complaining then check out the tips after the break
to see if they help in fixing the battery drain problem. In this article, we show
you how to fix iOS 11.4.1 - iOS 11 battery life problems on your iPhone, iPad
and iPod touch."
Back to top
View user's profile Send private message Visit poster's website
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3136
Location: Europe

PostPosted: Sat Sep 28, 2019 11:55 am    Post subject: Reply with quote

https://old.reddit.com/r/iOSProgramming/comments/da7st2/nfc_and_ios_directly_open_app_deeplink_on_reading/

QuestionNFC and iOS: Directly open app (deeplink) on reading NFC tag
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Igor Delovski Board Forum Index -> Mac Cocoa All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Delovski.hr
Powered by php-B.B. © 2001, 2005 php-B.B. Group