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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.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 03-03-2010, 04:36 PM   #1 (permalink)
Registered Member
 
Join Date: Mar 2010
Posts: 1
Exclamation UIImageView won't rotate!

I have a graph that I have done with the opensource framework core-plot. It works perfect, and now I want the user to be able to mail this graph. I therefore take the view of the graph and turn it to an UIImage and then save it to the sandbox for the mail-class to pick it up.

With this little nifty code I turn the UIView into a UIImage: "self" being the class of the Graph (Core-plot class). In other words, I take a "screenshot" of the graph view for the user to mail:

Code:
UIGraphicsBeginImageContext(self.view.bounds.size);
[self.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
All works fine, until I try to mail it. The Graph-image is both mirrored AND turned upsidedown. If this wasn't enough, it doesn't respond to any code at all, it doesn't matter what I write, it's still mirrored. I've tried everything in my power and now I need help.
Icyyy is offline   Reply With Quote
Old 12-23-2010, 10:18 PM   #2 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 51
Default

Hi i have the same issue, did you ever get a solution to this?
comicool is offline   Reply With Quote
Old 12-24-2010, 06:55 AM   #3 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
Default

this is the kind of questions that can be answered only if someone have already seen and solved that particolaur problem, so if you can attach a project example (that take a screen of another thing and reproduce the same problem) you have MOOOORE possibility that someone will help you.
__________________
dany_dev is offline   Reply With Quote
Reply

Bookmarks

Tags
core-plot, mailcomposer, rotate, uiimage, 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: 252
13 members and 239 guests
2WeeksToGo, ADY, BrianSlick, Dani77, Dattee, headkaze, kapps11, mer10, mgon987, sneaky, timle8n1, vigu360
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,879
Threads: 89,228
Posts: 380,744
Top Poster: BrianSlick (7,129)
Welcome to our newest member, mgon987
Powered by vBadvanced CMPS v3.1.0

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