Mac Cocoa |
Author |
Message |
XNote Kapetan
Joined: 16 Jun 2006 Posts: 532
|
Posted: Thu May 07, 2009 3:04 pm Post subject: Hardware (Accelerometer, Battery info, ...) |
|
|
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 |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3136 Location: Europe
|
Posted: Tue Apr 20, 2010 2:03 pm Post subject: |
|
|
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 |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Thu Oct 14, 2010 8:13 pm Post subject: |
|
|
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 |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Wed Oct 20, 2010 11:32 am Post subject: |
|
|
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 |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3136 Location: Europe
|
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3136 Location: Europe
|
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3136 Location: Europe
|
Posted: Fri Dec 21, 2018 12:02 am Post subject: |
|
|
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 |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3136 Location: Europe
|
Posted: Sun Mar 10, 2019 1:07 pm Post subject: |
|
|
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 |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3136 Location: Europe
|
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Thu May 09, 2019 11:35 am Post subject: |
|
|
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 |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Mon Sep 23, 2019 11:30 am Post subject: |
|
|
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 |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3136 Location: Europe
|
|
Back to top |
|
|
|