Results 1 to 7 of 7
Discuss How can one roatate an image which is the part of view at the iPhone Developer Exchange - Hackint0sh.org; Hi Everyone, I am writing the code to rotate the image which is an object ...
  1. #1
    Rookie Array

    Join Date
    Jul 2008
    Posts
    11
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Question How can one roatate an image which is the part of view

    Hi Everyone,
    I am writing the code to rotate the image which is an object of UIView class,
    but whn i apply transformation it is applied on the entire view object which affects all the images which view object has. Is there any way to rotate only one particular image in the view without affecting other images on the same view..please send your replies as soon as possible

    Best Regards,
    Priyank Ranka



  2. #2
    Senior Professional Array

    Join Date
    Sep 2007
    Posts
    370
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    29

    Default

    Have you tried putting that image in it's own UIView and rotating?

    Another way could be to use CATransform3DRotate in <QuartzCore/QuartzCore.h>.

    Check out the LevelView class of BubbleView sample code.

  3. #3
    Rookie Array

    Join Date
    Jul 2008
    Posts
    11
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Actually i have the following situation..I have two images (let name them as "A" and "B") say for example. It can be either object of UIImage or CGImageRef. Both belong to same view. Now i want to rotate image "A" which is a background image and i want to display image "B" which is small above the image "A".This is the situation. If I create a separate view for image "A" and rotate it by using CGAffineTransformation it will roatate image "A" but you wont be able to display image "B" over image "A".

    this is the situation in which i am stuck into.Please help me out so that i can rotate one image and display a static image over it

  4. #4
    Senior Professional Array

    Join Date
    Sep 2007
    Posts
    370
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    29

    Default

    If you're using a UIView i'm guessing you've added them with something like [self addSubview:myImageA];

    If this is the case have you tried playing with:

    [self bringSubviewToFront:myImageA];
    [self sendSubviewToBack:myImageB];

  5. #5
    Rookie Array

    Join Date
    Jul 2008
    Posts
    11
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    i played with that also somedays back...In this what happens is that we dont get the rotation feeling of the image A as when we display Image B over A we send back A's view in back which becomes inactive and bring B's view in front so we get static image of both where we Have Image B over image A


  6. #6
    Rookie Array

    Join Date
    Jul 2008
    Posts
    11
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    hey guys i finally got the way to rotate the image all working fine. Thanks for support.

  7. #7
    Senior Professional Array

    Join Date
    Jul 2007
    Posts
    220
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    18

    Default

    How did you did it ?

 

 

Similar Threads

  1. Replies: 0
    Last Post: 09-09-2009, 07:00 PM
  2. View to View NSUserDefault - Source code included
    By jjgraz in forum iPhone Developer Exchange
    Replies: 0
    Last Post: 03-07-2009, 10:54 PM
  3. Replies: 1
    Last Post: 07-25-2008, 02:12 PM
  4. Replies: 3
    Last Post: 05-05-2008, 03:33 PM
  5. [1.1.4] How to change carrier image and dock image?
    By TheSacredSoul in forum General
    Replies: 0
    Last Post: 02-28-2008, 12:36 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 03:46 PM.
twitter, follow us!