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 

Events & Touches on iPhone

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



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Tue Oct 07, 2008 12:33 am    Post subject: Events & Touches on iPhone Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Fri Oct 10, 2008 11:41 pm    Post subject: Reply with quote

MF - Keeping app from going to "sleep"

"I read somewhere that the following setting will avoid auto-locking.

application.idleTimerDisabled = YES."
Back to top
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Sun Oct 19, 2008 1:10 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Fri Oct 24, 2008 1:18 am    Post subject: Reply with quote

SO - Is there an equivalent technique in Cocoa for the synchronous
TrackPopupMenu in Windows?


"In response to a rightMouse event I want to call a function that displays a
context menu, runs it, and responds to the selected menu item. In Windows
I can use TrackPopupMenu with the TPM_RETURNCMD flag."
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 Mar 16, 2009 12:07 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3137
Location: Europe

PostPosted: Sat Jun 06, 2009 6:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Tue Jun 09, 2009 9:46 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Thu Nov 12, 2009 1:53 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3137
Location: Europe

PostPosted: Thu Dec 10, 2009 5:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Sat Apr 17, 2010 2:50 pm    Post subject: Reply with quote

SO - How to track touches and allow button taps at the same time?

"I'm wondering how to track touches anywhere on the iPhone screen and still
have UIButtons respond to taps."
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 Oct 05, 2010 3:08 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Mon Oct 25, 2010 12:53 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Thu Oct 28, 2010 11:43 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Thu Jun 13, 2013 7:08 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Mon Jan 28, 2019 4:00 pm    Post subject: Reply with quote

r - Why and how does UIPanGestureRecognizer mute
UISwipeGestureRecognizer while UITapGestureRecognizers
don't mute each other by default?


"UIKit normally allows the recognition of only one gesture at a time on a
single view. ... For example, in a view that contains both pan and swipe
gesture recognizers, swipes are never recognized."
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 Jul 15, 2020 9:44 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Sat Jul 25, 2020 11:40 pm    Post subject: Reply with quote

r - Haptic Haven: app for iOS devs to demo, learn about, and
implement the different haptic feedback types into their own apps


"This is UIKit. I ran into the the same issue where everything I was finding
for neumorphism was for SwiftUI, and UIKit doesn't allow 2 shadows for the
same element to create the effect.

I ended up using this one though through SPM:
https://github.com/hirokimu/EMTNeumorphicView
It worked great!"
Back to top
View user's profile Send private message Visit poster's website
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3137
Location: Europe

PostPosted: Mon Sep 14, 2020 4:41 pm    Post subject: Reply with quote

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
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