With a loop I add UIImageView to a UIScrollView i need to add an extra parameter addTarget so when i click i can log the index.
[imageButton addTarget:self action:@selector(buttonPushed:)
forControlEvents:UIControlEventTouchUpInside];
-(IBaction) buttonPushed: (int) index
{
NSLog(@"%d",index);
}
How do i achieve this?
...
Hi guys,
First some background: I'm using a UIScrollView to make an image visible and zoomable and everything works fine initially, I can view and zoom the image just fine. I'm using a UINavigationController to manage all of my various custom view controllers. After the image is displayed, and the back button is clicked, this view contr...
Hi, I am begining to iphone. i am working on camera modes. like heat, night, black and white. after capturing the image it will convertd into selected mode, like heat,b&w,night, but the problem is after converting the image it shows in landscape mode. Help me
...
I have an UIViewController class with two labels and a UIImageView set as IBOutlets, and I have this outlets connected in my xib, I have double checked they are connected properly, however when I check the their value in the debugger they are 0x0 so I cant change them programatically. Any ideas on what I might be doing wrong.
Heres the ...
I need to darken a UIImageView when it gets touched, almost exactly like icons on the springboard (home screen).
Should I be added UIView with a 0.5 alpha and black background. This seems clumsy. Should I be using Layers or something (CALayers).
...
Hey everyone. I've searched the web and really haven't found a problem quite like this. My set up is as follows: I am trying to make an app where a user drags uiimageviewss on a uiview inside a uiscrollview (which can zoom in), but also drag the image to a trashcan to be deleted. When the scrollview is zoomed in, the user can still drag ...
I am trying to have a view that has four buttons on the top: a picture button, video button, audio button, and text button and an imageView below the buttons. If you click on the picture button, the imageView displays the picture. but if I click the video button i want the imageView to display a picture of the video that you can click an...
hello to all, i have viewOne which contain a method to trigger camera n capture the image,
and i have another view(viewTwo) to show image which captured from previous view..
here am struggling to show image which captured in viewOne's View to viewTwo..
can anyone give me some suggestion how to show image from one view to another..
tha...
hello all, i have a uibutton to trigger iphone's camera to grab image and i have a uiimageView in same view to show captured image , but it not showing anything after capturing...
any solution ?..
...
Hi
I have a UIScrollView with multiple UIImageViews in it created like this.
frame = [[UIImageView alloc] initWithImage:bg];
frame.frame = CGRectMake(FRAME_SEPARATOR + numPage*1024 + numColumn*(FRAME_SEPARATOR+230), 10 +numRow*(FRAME_SEPARATOR+145), 230, 145);
UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget...
I'm trying to create an animated meter (like the gas tank in your car). I can't seem to get CGAffineTransformMakeRotate to rotate past 180. I've attempted to do it in 2 separate animations (eg: rotate 180 degrees and then rotate the remaining degrees) but it looks terrible since the timing of the total animation changes frequently on use...
Here's what I need to do:
I will have a toolbar with multiple objects on it (for this we'll call them A,B,C,D) and I want to be able to have the user click and drag them around and be able to snap them to a grid and connect to each other.
Sounds easy, right? Well here's my problem: some objects are different sizes, so A could be a 1x1...
I've had this app on app store with no problem until iphone 4 came out.
My home page has an image covering the whole screen.
UIImageView added in interface builder, and image path added in interface builder.
In all phones this image shows up; however, the image does not show up in any iphone 4, and instead the user sees a blank screen ...
My app is a standard casino game where you bet casino chips. When the user taps a chip that chip gets added to the chip pile being used for the bet. I do this by adding a UIImageView on top of (slightly offset to give the appearance of a stack of chips) the other chips (also uiimageviews).
UIImageView *addChip = [[UIImageView alloc] ini...
Here I addsubviews (UIImageViews) it all works on the simulator but not on the device (iOS 4.1) wtf!?
- (void)addChips:(int)value {
UIImage *chipImage;
switch (value) {
case 5:
chipImage = [UIImage imageNamed:@"5chip"];
break;
case 25:
chipImage = [UIImage imageNamed:@"25chip"];
break;
case 10...
I have an array of UIImages that contains some .jpg images downloaded from the net when the app starts. I also have a table view that shows some of these images in its cells. The problem is that when I scroll the table, the app's memory consumption always increases up to the point where the app crashes due to low memory conditions. The t...
Hi,
iam developing an app in which, images are to be scrolled on touchesmove i.e, swipping left /right.
I also have to display previous and next images beside present image in protrait mode.
I have seen the covertFlow sample, which is very close to my app, but i want it in horizontal mode. Please suggest me how can i acheive it , link...
Hi,
I have declared an UIImageView as an IBOutlet and I am setting the image of the imageView as follows in viewDidLoad method
imageView.image = [UIImage imageWithData:[NSData dataWithContentsOfURL:
[NSURL URLWithString: [productProperties objectForKey:@"image"]]]];
But this image doesn't show up at all.
productProperties is a ...
Hi,
I am facing this very weird problem, I have created a custom UITableViewCell on which I have a UIImageView on the left and on the right I have two UILabel.
When I run the program, I see all the image and the label appears on the table.
I have total of 5 rows that needs to be displayed
The only problem is the image starts displa...