uiimageview

UIImageview programmilly manage for iphone5 and iphone4

て烟熏妆下的殇ゞ 提交于 2019-12-05 21:25:12
I have an Issue about UIImageView Manage by XIB file for iphone5 screen Height and Iphone4 Screen Height. I Try to Manage code for UIImageView like this ~ CGFloat screenHeight = [UIScreen mainScreen].bounds.size.height; if ([UIScreen mainScreen].scale == 2.f && screenHeight == 568.0f) { backgroundImage.autoresizingMask=UIViewAutoresizingFlexibleHeight|UIViewAutoresizingFlexibleWidth; frameView.autoresizingMask=UIViewAutoresizingFlexibleHeight; backgroundImage.image = [UIImage imageNamed:@"bg-568h@2x.png"]; //frameView.frame=CGRectMake(16, 0, 288, 527); frameView.image = [UIImage imageNamed:@

Adding Pinch/Zoom effect to a UIImageView inside a UIScrollView

落爺英雄遲暮 提交于 2019-12-05 20:39:08
I have a very basic screen sharing iPhone app, I have successfully added the pinch/zoom effect to my app using a UIImageView inside a UIScrollView . The UIImageView receives the screen content from the PC on a regular interval. Everything works fine but as soon as I scroll/pinch/zoom it works at first but then it stops, and the delegate method that's updating the image view content stops firing up even though the server still sends the screen content. The whole app seems to be frozen but there are no error messages/exceptions/whatever. Can anyone help me, please? Chandan Shetty SP If you are

Fold/curl edge of UIImageView

China☆狼群 提交于 2019-12-05 19:53:27
I need to fold/unfold the edge of UIImageView to mark as a favorite. I searched across multiple sites, but have not found anything about it. I attached some example images, and, If possible, with animation effect. Thanks!! One way to do it would be to animate the view usign OpenGL. There is a nice library for that called XBPageCurl However, you could achieve a much lighter solution by creating a mask for the curl effect and animate your view while transitioning to it. Here is what it would look like [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:0.3]; UIImage

How I can round UIImageView in UICollectionViewCell?

为君一笑 提交于 2019-12-05 19:06:21
In my UICollectionViewCell class I wrote this: - (void)layoutSubviews { [super layoutSubviews]; self.myImageView.layer.cornerRadius = CGRectGetHeight(self.myImageView.frame) / 2; self.myImageView.layer.masksToBounds = YES; } But this does not work correctly in all cases, it appears like this: Pablo Romeu I faced a similar problem trying to get a collectionView inside a TableView Cell . If you are changing your cell's model you should tell the cell to recalculate its layout so the cell changes its size and calls layoutIfNeeded . - (UICollectionViewCell *)collectionView:(UICollectionView *

Custom UIButton cant interact with linked UIImageView

巧了我就是萌 提交于 2019-12-05 18:52:46
I'm stuck on the following code. Some how my UIButton Extended class cant show or hide an UIImageView My methods are being called and the imageview is not nil. Here is the code: @interface UILinkedImageButton : UIButton { IBOutlet UIImageView *linkImageView; } @property (nonatomic, retain) IBOutlet UIImageView *linkImageView; @end #import "UILinkedImageButton.h" @interface UILinkedImageButton () - (void)showImage; - (void)hideImage; @end ------------------------------------------------------------------------------------------------- @implementation UILinkedImageButton @synthesize

Images Persistence and Lazy Loading Conflict With Dispatch_Async

瘦欲@ 提交于 2019-12-05 18:24:09
I am working on a feed reader and i am doing it by parsing rss feeds using nsxmlparser. I also have thumbnail objects that i am taking from the CDATA block. -(void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ NSString *someString = [[NSString alloc] initWithData:CDATABlock encoding:NSUTF8StringEncoding]; NSString *storyImageURL = [self getFirstImageUrl:someString]; NSURL *tempURL = [NSURL URLWithString:storyImageURL]; NSData *tempData = [NSData dataWithContentsOfURL:tempURL]; thumbnail = [UIImage

How to use NSUndoManager with a UIImageView or CGContext

痞子三分冷 提交于 2019-12-05 18:23:58
I have an app that uses cgcontext to draw things onto a UIImageView that the user draws using touch events, and I want to be able to undo the drawings made by the user. Edit: I am trying to use my touchesBegan to save theUIImage at the begining of a touch to the NSUndoManager And then how do I use it to undo using a UIAlertView. Meaning, I want to call a method from my UIAlertView that undo's then another that will redo, but I don't know how to accomplish this. Please help I write graphics software for the iPhone ( http://www.layersforiphone.com/ ) and I spent a while trying to figure this out

How to make UITextView text all selectable and show copy option to the user iPhone app?

做~自己de王妃 提交于 2019-12-05 17:58:32
Am working in iPhone application like iMessage native app. I have designed a page look like iMessage with added a bubbles also. How i done is, just added a UITextView in UITableView Cell and also i have added UIImageView on UITextView with bubble images . Load the text to UITextView from NSMutableArray. It is working fine. Now my doubt is: In iMessage app they set that when the user hold the bubble they making the text as selectable and showing Copy option . In my app when the user hold a bubble the Copy option showing but some particular text only copying . How can i select all text and show

how to insert UIImage into UITextView

ぐ巨炮叔叔 提交于 2019-12-05 17:28:04
问题 im working on a editable notebook type project. it consists some text and images at any time. in UITextView if we add images as subview the frames are fixed. but i have editable option. so i must save image as NSString format in UITextView , but it should look image type in uipart. so please suggest me how can i handle this requierment. Thanks in advance 回答1: I think you're asking for something that's not possible. If you need to truly interleave text and graphics, UIWebView is about your

Animate circular mask of UIImageView in iOS

拜拜、爱过 提交于 2019-12-05 16:26:44
问题 I am wondering how to animate the scale of a mask on a uiimageview. Example images attached. The gray boxes are the image background of my uiviewcontroller and is not part of the issue. I assume creation of a uiview subclass that I pass an image, a radius and a center point. And then (?) create a mask, and then animate it back and forth? Can anyone point me in the right direction? The circle can be placed anywhere, at any size, but the image to be revealed is always full screen. Eventually I