Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 07-12-2011, 11:58 PM   #1 (permalink)
iOS padawan
 
Hakimo's Avatar
 
Join Date: Apr 2011
Posts: 12
Hakimo is on a distinguished road
Default Using the TouchImageView class to rotate, scale and translate UIImageView

Hi, I've been playing around with lesson 14 - Multitouch demo. . I know how to use it with a newly create image done in viewDidLoad, but I'm not sure how to use it with a current UIImageView from interface builder. I would copy the touchimageview classes but it's a very long line of code so it might clutter the page. Here's a snippet in my current class. This one creates a new UIImage. I have a current UIImageView called imageOverlay. I'm not sure how to assign the touchviewImage to it. Hope someone can help. Thanks in advanced!

Code:
UIImage *image = [UIImage imageNamed:@"picture_mine.png"];
    CGRect imageRect = CGRectMake(0.0, 0.0, IMAGE_WIDTH, 0.0);
    imageRect.size.height = IMAGE_WIDTH * image.size.height / image.size.width;
    TouchImageView *touchImageView = [[TouchImageView alloc] initWithFrame:imageRect];
    touchImageView.image = image;
    touchImageView.center = CGPointMake(160.0, 230.0);
    [self.view addSubview:touchImageView];
__________________
www.hakimo-studio.com
www.lcgdi.com
"Learn and Play"
Facebook | Twitter
Our Apps : Pocket Ipin
Hakimo is offline   Reply With Quote
Reply

Bookmarks

Tags
ios, uiimageview

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 372
9 members and 363 guests
apatsufas, chemistry, Kirkout, leostc, lzwasyc, MarkC, Sami Gh, SamorodovAlex, VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,664
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Leslie80
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:38 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0