Mac Cocoa |
Author |
Message |
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Tue Oct 07, 2008 12:33 am Post subject: Events & Touches on iPhone |
|
|
SO - Does the iPhone timeout if a function takes too long to execute?
"The iPhone OS will terminate your app if it seems it has become unresponsive,
basically if your main thread blocks for a few seconds. This is also important
when exiting - if you save on exit you have a very small window to complete
the save which is compounded by the fact the OS may be doing other things.
If you take too long to exit the OS kills your app which to the user appears as
if your app is failing to save."
Last edited by delovski on Thu Jun 13, 2013 7:06 pm; edited 1 time in total |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Fri Oct 10, 2008 11:41 pm Post subject: |
|
|
MF - Keeping app from going to "sleep"
"I read somewhere that the following setting will avoid auto-locking.
application.idleTimerDisabled = YES." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Sun Oct 19, 2008 1:10 am Post subject: |
|
|
SO - Right way to implement TouchesMoved?
"I have a custom UIView that generates a set of subviews and display them
in rows and columns like tiles. What I am trying to achieve is to allow the user
to touch the screen and as the finger move, the tiles beneath it disappears." |
|
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: Mon Mar 16, 2009 12:07 am Post subject: |
|
|
mf - Dimensions of my screen are 317x470, not 320x480
"I've been trying to figure this out for a long while now, and I just realized
that when I log my touch points all over the screen the highest y point i get
is 470, and the highest x point i get is 317." |
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3137 Location: Europe
|
Posted: Sat Jun 06, 2009 6:34 pm Post subject: |
|
|
MF - UIWebView inside a ScrollView
"If the user touched and panned over a button, for example, you wouldn't
want to forward it on because then the button would get triggered when the
user meant to scroll the view." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Tue Jun 09, 2009 9:46 pm Post subject: |
|
|
MF - Can't Detect CGPoint:locationInView At Status Bar?
"I am having the exact same problem with one of my projects, and i first
discovered it on the device, so it's not a simulator issue. I would really like
to get a fix for this." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Thu Nov 12, 2009 1:53 am Post subject: |
|
|
MF - Do phone calls kill apps?
"What happens when phone calls are received or made? Are apps left run-
ning in the background?
Would an [NSTimer scheduledTimerWithTimeInterval...] be interrupted?" |
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3137 Location: Europe
|
Posted: Thu Dec 10, 2009 5:41 pm Post subject: |
|
|
Jeff LaMarche - A Better Two-Finger Rotate Gesture
"A while back, I posted a mostly functional, but imperfect sample code for
doing a two-finger rotate gesture. I've been meaning to revisit this for some
time to get it working correctly." |
|
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: Tue Oct 05, 2010 3:08 pm Post subject: |
|
|
SO - Method -motionBegan:withEvent: not Working
"I assume you want to implement this in a subclass of UIViewController.
Make the UIViewController capable of becoming first responder..." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Mon Oct 25, 2010 12:53 am Post subject: |
|
|
so - Rotating image using objective C
"My first advice would be to switch to using the UIRotateGestureRecognizer
if your app is for 4.0 and higher. It does the right thing and provides you
with a rotation property." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Thu Oct 28, 2010 11:43 pm Post subject: |
|
|
icodeblog.com - Working with UIGestureRecognizers
"UIGestureRecognizer is an abstract class that several concrete classes
extend Eg. UITapGestureRecognizer, UIPinchGestureRecognizer. Today
we are going to be building a simple photo board application. You will be
able to add photos from your board, move, rotate and zoom them in and
out around the board. We will also build in some simple physics to give a
sense of the photos being thrown around the board." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Thu Jun 13, 2013 7:08 pm Post subject: |
|
|
so - Forwarding UIGesture to views behind
"My so called subView A is actually an instance of a 3rd party library's View
class, which takes all touches away and I dont have any control over any
gestures on it. I want different implementation for left and right swipe and I
want pinch, tap etc work just like it is working with this third party view. So I
put a view on top of A (SubView B) to get left and right swipes. But now I
want to forward other gesture events to underlying library." |
|
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: Wed Jul 15, 2020 9:44 am Post subject: |
|
|
Swiftjective-C - A Best in Class iOS App
"Voice Over is fully supported and the rotor control is implemented by including the relevant headings. Using Screen Curtain yields an experience that's not only usable, but up to par with the regular app using only Voice Over.
Voice Over gestures are overridden where necessary:
Escape: A two-finger Z-shaped gesture that dismisses a modal dialog, or goes back one level in a navigation hierarchy.
func accessibilityPerformEscape() -> Bool
Magic Tap: A two-finger double-tap that performs the most-intended action.
func accessibilityPerformMagicTap() -> Bool
Three-Finger Scroll: A three-finger swipe that scrolls content vertically or horizontally.
func accessibilityScroll(_ direction: UIAccessibilityScrollDirection) -> Bool
Increment: A one-finger swipe up that increments a value in an element.
func accessibilityIncrement()
Decrement: A one-finger swipe down that decrements a value in an element.
func accessibilityDecrement()
Voice Control is also supported, and appropriate accessibilityUserInputLabels are set if needed.
Your app respects the following settings:
Including Bold Text.
High Contrast Cursors." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3137 Location: Europe
|
Posted: Mon Sep 14, 2020 4:41 pm Post subject: |
|
|
Derik Ramirez - Understanding the RunLoop model by creating a basic shell
"When we find ourselves listening for events, reacting to those events, and
then going back to listening for more events, we have ourselves an Event-Loop.
Having an event-loop is a common scenario. So common that Apple decided to
provide us with a model to handle event-loops consistently. In this post, we are
going to explore how RunLoops work and use them to build basic shell." |
|
Back to top |
|
|
|