Closed paoloandrea closed 12 years ago
Do you mean PaperFoldState?
you'll get it in the UIViewController with self.state
typedef enum { PaperFoldStateDefault = 0, PaperFoldStateLeftUnfolded = 1, PaperFoldStateRightUnfolded = 2, PaperFoldStateTransition = 3 } PaperFoldState;
Is this what you mean?
On 28 Jul, 2012, at 8:09 PM, paoloandrea reply@reply.github.com wrote:
How can detect if fold i open, close, ..etc. Is possible detect it onTouch?
For example: onTouch (FoldStateTransition)
Thank you. Great work. p
Reply to this email directly or view it on GitHub: https://github.com/honcheng/PaperFold-for-iOS/issues/3
But... how can i know if PaperFolderState are in trasition? Can i use notification? There are a delegate?
When i touch the screen and PapertFolder are in transition i need to make more action (close keyboard, ..etc.) How can i do it? Thank you for help me.
Ah, I get what u mean now. It's not there yet, but I can set up delegates for this.
Sent from my iPad
On 28 Jul, 2012, at 8:42 PM, paoloandrea reply@reply.github.com wrote:
But... how can know if PaperFolderState are in trasition? Can i use notification? There are a delegate?
When i touch the screen and PapertFolder are in transition i need to make more action (close keyboard, ..etc.) How can i do it? Thank you for help me.
Reply to this email directly or view it on GitHub: https://github.com/honcheng/PaperFold-for-iOS/issues/3#issuecomment-7332739
Now i can use the touch event, but don't recognize PaperFoldStateTransition ??
-(void)touchesMoved:(NSSet )touches withEvent:(UIEvent )event { NSLog(@"Touch Move"); NSLog(@"State %i",[self state]); } Result only 0 or 2 (slide from right to left) ;)
Can you elaborate what you are trying to achieve?
Will a delegate like this work for your use?
On 28 Jul, 2012, at 9:14 PM, paoloandrea reply@reply.github.com wrote:
Now i can use the touch event, but don't recognize PaperFoldStateTransition ??
-(void)touchesMoved:(NSSet )touches withEvent:(UIEvent )event { NSLog(@"Touch Move"); NSLog(@"State %i",[self state]); } Result only 0 or 2 (slide from right to left) ;)
Reply to this email directly or view it on GitHub: https://github.com/honcheng/PaperFold-for-iOS/issues/3#issuecomment-7332941
Yes, it's ok ;)
done
How can detect if fold is open, close, ..etc. Is possible detect it onTouch?
For example: onTouch (FoldStateTransition)
Thank you. Great work. p