iphone - UIImageView scope. Accessing from another class -


I am a part of the code on which I am working:

I came to know How to use UIImageView is another method within the same class file in which it was programmatically created.

However, I was wondering how I would use the same UIImageView from within that letterline.m file, especially within the method that was touched. The way in which I wrote the code in the sample, it will only show when the frame is at the top of each other, when the second method is called. Of course, I need to be able to see if the scene enters each other in the middle of each other within the real touch. I'm sure this is something easy, but I'm not sure how to do it.

Thank you in advance for any help you can give me

your comment , And the code you already have, I will go down this route. It's not what I personally do, just FYI. The way you want it, it looks like the structure is a bit shaky.

Make the place holder work in touching UIImageView, then check to see if the user stops the image as it moves or not.

  #import "LetterTiles.h" @ Implementation LetterTiles @ synthesize placeHolder; - (void) touches: (NSSET *) touches with the avant: (UIEvent *) Event {// Touch Point Retrieve (I understand this useful information, so I have left it) CP point Pt = [[touches anyObject] locationInView: self]; StartLocation = pt; // Create a place holder image where you want [Self set place holder: [[[UIImageView alloc] initWithFrame: CGRectMake (39, 104, 70, 70)] autorelease]]; [New image set image [UIImage imageNamed: @ "placeHolder.png"]] Autores]; } - Increased touch: (nset *) touches the event: (UIEvent *) event {CGPoint pt = [[touches any object] Scenes in place: [Self supervisor]]; [Auto-setcenterpoint: pt]; } - (zero) touch touch: (NSSET *) touches the event: (UIEvent *) event {LetterTiles * movingTile = self; {CGTTIntextax ([moving tile frame], [placeholder frame]) {NSLog (@ "touch"); [Self set frame: [placeholder frame]];}}    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -