Hi everyone,
i was just wondering wether it is possible to add an uiimageview as a .m and .h class file because you can just choose a subclass from uiview or uitableviewcell in apple's templates and it than automatically creates the .m and .h files.
Is there a way to do the same for an UIImageView or is it possible to somehow "turn" the ...
hi,
i just can't get my scroll view to actually scroll.. everything displays fine except it just won't scroll.....
here's my code:
- (void)viewDidLoad {
[super viewDidLoad];
UIScrollView *scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, 320, 600)];
scrollView.contentSize = CGSizeMake(320, 600);
scrollView.scrollEnabled...
I have a UISegmentedControl and I have some photos, my initial aim is when ever I click on a particular segment one particular image should appear on the view.
For example: If i have four segments and four images then upon each segment I click I must see a image.
Here I have taken an NSArray and Uploaded all these images using this par...
For a concept I'm developing, I need to load XIB files manually and by using class and instance method swizzling I have been able to intercept calls to imageCustomNamed, imageCustomWithContentsOfFile and imageCustomWithCGImage for the UIImage class and initCustomWithImage for UIImageView. What I want to to is detect the image name and re...
Hi there,
I'm trying to create a swingometer, a bit like the ones used in golf games, where the user holds a button to start a swing, releases at the apex to determine power, at which point the 'swing' reverses direction, and the user taps again on the way down to set the accuracy.
Rather than having a bar that fills up, I would like ...
Hello,
I have the following code in place:
- (void)viewDidLoad {
NSString *homeDirectoryPath = NSHomeDirectory();
NSString *imagePath = [homeDirectoryPath stringByAppendingString:@"/graph.png"];
NSLog(@"Image: %@", imagePath);
if (![[NSFileManager defaultManager] fileExistsAtPath:imagePath isDirectory:NULL])
{
...
i would like to make 2 operations to an UIImageView zoom, rotate
i have 2 problems
i make an operation for zoom for ex. and when i try to make rotation the uiimeview is set to initial size, i would like to know how to keep the zoomed uiimageview and make the rotation from the zoomed image
i would like to combine the zoom operation with...
Hello everyone,
I have these codes:
UIImage * img = [[UIImage alloc] initWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:IMAGEURL]]];
[self.imageView setImage:img];
But the IMAGEURL contains a high resolution picture so it takes much time to load. Can I resize the image data smaller to load faster?
Any help will be appre...
I have an image in my iPhone Project. It's a PNG and I can set the background in Interface Builder but I want to do this programatically.
NSLog(@"Before %@", myEasterEgg);
uiImageBackground.backgroundColor = [UIColor purpleColor];
myEasterEgg = [myEasterEgg stringByAppendingString:@"5"];
NSLog(@"After %@", myEasterEgg);
if (CFStringComp...
Hi all,
In my application, I have created a CALayer (with a few sublayers - the CALayer is composed of shapes added as sublayers).
I am trying to create a UIImage that I will be able to upload to a server (I have the code for this).
However, I can't figure out how to add the CALayer to a UIImage.
Is this possible? Any advice would be ...
i am developing a small game which has two UIImagviews..one UIImageview(Target) is moving in horizontal line and when user taps on the screen it stops animating and the other UIImagview(Arrow) starts animating towards the presrent location of that UIImagview(target) ..i am not able to calculate progamatically the frame of Target (uiimagv...
Hey.
What I want to do is to always use the same instance of UIImagePickerController in my whole app, since i don't want to alloc and destroy my picker every time the user takes a picture. The app uses a picker and an UIImageView named pictureA to show the picture choossen from the iPhone album or taken with the camera.
At start I all...
I have a UIButton over a UIImageView. I want the button to adjust its size to fit the imageview. I tried a few different ways but can't get it. Anyone know how to do this?
...
Hi, I'm trying to load a random UIImage from the web using this method
NSOperationQueue *queue = [NSOperationQueue new];
NSInvocationOperation *operation = [[NSInvocationOperation alloc]
initWithTarget:self
selector:@selector(loadImage)
...
Hi All,
I am using google chart functionality in iPhone app....I want to download image and put it into UIImageView from http://chart.apis.google.com/chart?cht=p3&chd=t:60,40&chs=250x100&chl=Hello|World ...
Is there any sample app for doing such functionality?or any other way to display charts in app?
Thanks in advance...
...
I would like to get the coordinates of an UIImageView programmatically. How do I do this?
For example I have a square. I want to get the coordinates of all the corners. How must i proceed?
NSLog("%f", ImageView.frame.origin.x);
NSLog("%f", ImageView.frame.origin.y);
I get the topleft coordinate of the square.
I must say that the squ...
Hi, I'm developing a iPhone app, but I ran into a snag.
NSString *fileLocation = [[NSBundle mainBundle] pathForResource:@"happy.1" ofType:@"jpg"];
UIImage *new_image = [UIImage imageWithContentsOfFile:fileLocation];
[self setImage:new_image];
if (new_image == nil) {
NSLog(@"can't load image happy.1.jpg");
}
bgImageView.image = ima...
I have a custom view which is composed of a number of UIImageViews. These UIImageViews can vary in size (from 200x200 down to 50x50). The images that they display (loaded from png files) are stored in resources at the highest possible resolution (200x200), but frequently are displayed at lower resolutions.
Currently I just load the UI...
How is an image that is larger than the iphone view size to a UIScrollView?
I tried to add the image to the UIImageView, still not connected to the UIScrollView and the image just shrunk to fit the UIImageView.
How is this structure set up?
Thanks
...
how can i get the image size when it's zoomed by user,
i write these on my project :
- (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView
{
return imageView;
}
-(void) didLoad{
UIImageView *tempImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"image.jpg"]];
self.imageView = tempImageView;
[tempI...