Giter Site home page Giter Site logo

Comments (7)

honcheng avatar honcheng commented on September 25, 2024

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 [email protected] 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:
#3

from paperfold-for-ios.

paoloandrea avatar paoloandrea commented on September 25, 2024

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.

from paperfold-for-ios.

honcheng avatar honcheng commented on September 25, 2024

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 [email protected] 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:
#3 (comment)

from paperfold-for-ios.

paoloandrea avatar paoloandrea commented on September 25, 2024

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

from paperfold-for-ios.

honcheng avatar honcheng commented on September 25, 2024

Can you elaborate what you are trying to achieve?

Will a delegate like this work for your use?

  • (void)foldView:(id)foldView didTransitionFromState:(FoldTransitionState)fromState toState:(FoldTransitionState)toState

On 28 Jul, 2012, at 9:14 PM, paoloandrea [email protected] 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:
#3 (comment)

from paperfold-for-ios.

paoloandrea avatar paoloandrea commented on September 25, 2024

Yes, it's ok
;)

from paperfold-for-ios.

honcheng avatar honcheng commented on September 25, 2024

done

from paperfold-for-ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.