uiimageview

Which one is a better iOS Photo Viewer: Three20 or EGOPhotoViewer [closed]

拜拜、爱过 提交于 2019-12-21 21:42:22
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I am making an app for showing an image gallery in iOS, and I came across two samples. I want to know the differences between Three20

Swift 3: get color of pixel in UIImage (better: UIImageView)

佐手、 提交于 2019-12-21 20:47:31
问题 I tried different solutions (e.g. this one), but the color I get back looks a bit different than in the real image. I guess it's because the image is only RGB , not RGBA . May that be an issue? Related issue: if the UIImage has contentMode = .scaleAspectFill , do I have to do a recalculation of the image or can I just use imageView.image ? EDIT: I tried with this extension: extension CALayer { func getPixelColor(point: CGPoint) -> CGColor { var pixel: [CUnsignedChar] = [0, 0, 0, 0] let

How to apply Perspective 3d Transform on image and save that image in document directory

早过忘川 提交于 2019-12-21 20:24:46
问题 I am applying 3D transform on a image layer by follow code. UIImageView *view = (UIImageView *)[recognizer view]; CGPoint translation = [recognizer translationInView:self.view]; CGPoint newCenter = view.center; newCenter.x += translation.x; newCenter.y += translation.y; view.center = newCenter; [recognizer setTranslation:CGPointZero inView:self.view]; Following is the from which the points are converted to transform. UIView+Quadrilateral [self.view transformToFitQuadTopLeft:self

iOS curl up animation to remove uiimageview

穿精又带淫゛_ 提交于 2019-12-21 20:22:17
问题 i'm looking to remove an image from my app with a curl up animation. I've got [UIView transitionWithView:sender.view.superview duration:1.5 options:UIViewAnimationOptionTransitionCurlUp animations:^ { [sender.view removeFromSuperview]; } completion:nil]; but this curls the entire page away and looks as though there's a separate page beneath without the image on it. Instead of a 'transition' to a new page is it possible to curl the image off the page without affecting the rest of the page? Do

IOS: event when an Imageview is touched

你。 提交于 2019-12-21 17:20:03
问题 I have an ImageView with a png and I want to do this: when someone touch this imageview it's alpha change to 0.0, is it possible? (all without buttons) 回答1: Yes, it is possible. For example you can do that with following steps: set image view's userInteractionEnabled property to YES - so it will receive touch events add UITapGestureRecongnizer to it in gesture handler set view's alpha to 0.0, you can do that with animation as well: [UIView animateWithDuration:0.5 animations:^(void){ imageView

How to set animation to UIImageView?

流过昼夜 提交于 2019-12-21 16:58:01
问题 How to give animation to UIImageView. I have a following code for animation .but not working for imageview MyImage=[[UIImageView alloc] initWithFrame:CGRectMake(10, 57, 220,140)]; MyImage.image=[UIImage imageNamed:@"image.png"]; MyImage.userInteractionEnabled = YES; [self.view addSubview:MyImage]; [UIView beginAnimations : nil context : nil]; [UIView setAnimationCurve : UIViewAnimationCurveLinear]; [UIView setAnimationDuration : 1.00]; UIView setAnimationTransition :

iPhone SDK: subFolders inside the main bundle

扶醉桌前 提交于 2019-12-21 07:57:20
问题 in the current project I have a number of folders, with subfolders, and these contain images: 01.png, 02.png. Folder1/FolderA/f1.png Folder1/FolderB/F1.png When I compile the app, I looked inside the the .app and noticed that all the images are placed in the top level, with no sub-folders. So clearly when trying to load the image this doesn't work: NSString *filePath = [[NSBundle mainBundle] pathForResource:@"f1" ofType:@"png" inDirectory:@"Folder1/FolderA"]; But even more strangely, when

Add UIImageview in Uitextview as in iMessage

耗尽温柔 提交于 2019-12-21 06:54:31
问题 I am using UItextview and adding an extra inputAccessoryview for toolbar buttons to perform additional actions. My toolbar has a camera icon which gets the image from UIImagePickerController and Ι have to add this image in my UItextview . Right now Ι am able to do this with : [myTextView addSubView:imageView]; But that way, always adds the image at the beginning of the textview and what Ι want is to add it at the current cursor location. I would also like to remove this image just like I

Add UIImageview in Uitextview as in iMessage

被刻印的时光 ゝ 提交于 2019-12-21 06:52:37
问题 I am using UItextview and adding an extra inputAccessoryview for toolbar buttons to perform additional actions. My toolbar has a camera icon which gets the image from UIImagePickerController and Ι have to add this image in my UItextview . Right now Ι am able to do this with : [myTextView addSubView:imageView]; But that way, always adds the image at the beginning of the textview and what Ι want is to add it at the current cursor location. I would also like to remove this image just like I

Draggable UIImageView Partially Transparent & Irregular Shaped

喜欢而已 提交于 2019-12-21 06:39:30
问题 @interface UIDraggableImageView : UIImageView { } .m file - (void) touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event { // Retrieve the touch point CGPoint point = [[touches anyObject] locationInView:self]; startLocation = point; [[self superview] bringSubviewToFront:self]; } - (void)touchesMoved:(NSSet*)touches withEvent:(UIEvent*)event { // Move relative to the original touch point CGPoint point = [[touches anyObject] locationInView:self]; CGRect frame = [self frame]; frame.origin.x +=