uiimageview

IPhone UIImagepicker with camera showing camera roll thumbnail like default camera app?

夙愿已清 提交于 2019-12-06 15:17:54
im working in iphone's camera app, using UIImagePicker to launch the camera. Everything goes well, just a need to use the default controls showed in the camera app in iphone(little thumbnail from the last pic in camera roll and take photo buttons) and its animation(take and send the picture to the left bottom thumbnail), not default in UIImagePicker (cancel and take photo buttons). How i can do that? thankz :D You can't do that. What you should do is present a UIActionSheet and ask if the user wants to get a photo from the Camera or their Photo Albums. You may try to use the cameraOverlayView

iOS - Invert a UIImage with button

懵懂的女人 提交于 2019-12-06 14:52:19
I have a simple application where I can take an photo or choose and existing photo on the camera roll and then display the image in a UIImageView. I want to have a button that you can press and invert the picked image and then display that in the camera roll. My question is, how do invert the colors of a UIImage and then use the new inverted one to display in the ImageView? I have seen other posts related to this but none explain how implement the code. I'm fairly new to xcode and would appreciate all feedback. Here is my .m file for the view controller: #import "ViewController.h" @interface

dynamic creation of uiimageview in for loop

有些话、适合烂在心里 提交于 2019-12-06 14:51:42
问题 Hi i am new to iphone.. I have stored the images in array .I want to know how to display those images in UIImageView ,where the UIImageView should be created dynamically according to filelist count increases, in for loop. this is the code NSArray *filelist; NSFileManager *filemgr; int count; int i=0; int t=0; filemgr = [NSFileManager defaultManager]; filelist = [filemgr directoryContentsAtPath: @"/Mypath/"]; NSMutableArray *imageVwArr = [[NSMutableArray alloc]init]; count = [filelist count];

Accessing images from nsbundle

*爱你&永不变心* 提交于 2019-12-06 14:36:14
I have a framework which is trying to access xib's and images from a bundle. I am able to access the xib fine but unable to load the images in UIImageView. I even check if the file exists and the console output is yes... Any idea how to load the image? Code to load xib in the framework viewcontroller file self = [super initWithNibName:@"ViewController_iPad" bundle:[NSBundle bundleWithPath:[[NSBundle mainBundle] pathForResource:@"MyBundle" ofType:@"bundle"]]]; Code to load images - (void) loadImage { NSString *path = [[NSBundle mainBundle] pathForResource:@"MyBundle.bundle/test" ofType:@"png"];

Image became horizontal after successfully uploaded on server using Http Post

纵饮孤独 提交于 2019-12-06 14:32:27
问题 i capture the image using image picker, at the that time image is in its actual position. but after uploading it on server it became horizontal. i don't get any clue why that happening. here is my code NSString *urlString = @"Url"; NSMutableURLRequest *request = [[[NSMutableURLRequest alloc] init] autorelease]; [request setURL:[NSURL URLWithString:urlString]]; [request setHTTPMethod:@"POST"]; NSMutableData *body = [NSMutableData data]; NSString *boundary = [NSString stringWithString:@"-------

Increase/Decrease brightness of a UIImageView

北慕城南 提交于 2019-12-06 14:17:48
问题 Does anybody know how to change the brightness of a UIImageView in objective-C? Also, is there a way to increase/decrease the size of the UIImage ? 回答1: Check out the UIImage (void)drawInRect:(CGRect)rect blendMode:(CGBlendMode)blendMode alpha:(CGFloat)alpha method and see what you can create. Otherwise, you are going to have to do some more in depth work increasing the brightness of each pixel in HSV color space (proportionately increasing the V values). By blending the image with a white

Autolayout (with Masonry) with corner radius

余生颓废 提交于 2019-12-06 14:03:44
I would like to layout a circular UIImageView with Masonry. So I have created the UIImageView like this: [self.imageView mas_makeConstraints:^(MASConstraintMaker *make) { make.centerX.equalTo(self.mas_centerX); make.top.equalTo(self.mas_top).with.offset([[UIView ub_padding] floatValue]); make.bottom.equalTo(self.descriptionLabel.mas_top).with.offset(-[[UIView ub_padding] floatValue]); make.height.equalTo(self.descriptionLabel.mas_height).priorityHigh(); make.width.equalTo(self.imageView.mas_height); }]; I then created the constraints for the ImageView [self.imageView mas_makeConstraints:^

How to save path of image picked from UIImagePickerViewController to sqlite database and access it later ? ios

你离开我真会死。 提交于 2019-12-06 13:41:17
问题 I need to save path of the image picked from server and later access the path to show that image on user click by database retrival. -(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { NSString *urlPath = [info objectForKey:@"UIImagePickerControllerReferenceURL"]absoluteString]; } and saving it to database. It saved as assets-library://asset/asset.JPG?id=E1136225-97DE-4BF4-A864-67E33D60737A&ext=JPG then I want to import to

CIGaussianBlur changes imageOrientation sometime

半世苍凉 提交于 2019-12-06 13:03:17
In my iOS app I want to apply a filter CIGaussianBlur on UIImage, when it gets a image having big height it rotates the image CIContext *context = [CIContext contextWithOptions:nil]; CIImage *inputImage = [[CIImage alloc] initWithImage:image]; //get image for blur CIFilter *blurFilter = [CIFilter filterWithName:@"CIGaussianBlur"]; [blurFilter setDefaults]; [blurFilter setValue:inputImage forKey:@"inputImage"]; CGFloat blurLevel = 0.0f; // Set blur level [blurFilter setValue:[NSNumber numberWithFloat:blurLevel] forKey:@"inputRadius"]; // set value for blur level CIImage *outputImage =

Load images on a image view using horizontal scrolling

筅森魡賤 提交于 2019-12-06 12:49:46
问题 I'm loading images on the UIImageView through a string and i want horizontal scrolling to view the images on a UIImageView . In my xib file I have a scroll view over which there is a image view. I'm using this code but my page is not scrolling and only the first image in the string is loaded.Can anyone please help. Code: -(void)viewDidLoad { count=1; // imagesName = [[NSMutableArray alloc]initWithObjects :@"election_band_base.jpg", @"ElectionBoxAPPA-Hindi(1).jpg", @"photos.png", @"business