I have a UIScrollView with subclassed UIImageViews in it. When one of the imageviews are clicked, I'd like the parent UIView (contains the scrollview) to receive the event in its
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
I can tell if the imageview was clicked by
if(CGRectContainsPoint(myScrollView.frame, loc...
How would I save an Instance so that I could use it in another method?
This is the code I have:
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
CGPoint touchedStart;
// find position of the touch
touchedStart = [[touches anyObject] locationInView:self];
}
- (void)touchesEnded:(NSSet *)touches withE...
Hey,
I've been using CALayer to do all the custom drawing and animations and found it really nice to work with. But when I tried adding a navigation bar to the superview, it comes out as white. I have a superview with a navigation bar and a subview thats used for the calayer drawing. The drawing in the subview does not reach beyond its b...
So I am creating an class that does an animation. There is a timer delay. So I will instantiate this class. Have it do its thing then have a timerFinished type of delegate to continue on.
This question comes from my sheltered garbage collection career.
What is the best way to release this object?
Do I have it release itself when it...
I have a problem that I solved using delegates, but now I am thinking I may have made a mistake.
This is what I want to do.
I have a class that runs on a delay. When it is done it has a finished delegate that it calls.
Now I have the main class that creates two of these delay classes.
I don't want them to both be handled by the sa...
is it true that the key values for NSMutableDictionary can only be strings?
I was trying to use objects, but I am getting a warning.
...
I'm a beginner!
I want to place my application's settings in the iPhone's "Settings" screen, please help me!
...
Hello, this is a reformulation of this question
When i set myWebView.dataDetectorTypes = UIDataDetectorTypeNone; phone links (in a href html tag) are handled like this :
How can I handle phone links with the shouldStartLoadWithRequest delegate method instead?
...
HEllo,
I have a situation here i have contents(NSStrings) in an array, is there any system or library that can assign the content of array to specific fields.
Please help if you have an idea about this.
Thnx in advance
(ok to elaborate)
say I have standard of a student then allocate it to standards text field corresponding to standa...
Hello, i am trying to integrate adwhirl to my iphone game. it is opengl based and in landscape mode.
If i just place the ads they show fine but as if the app was in portrait mode. i need to rotate them.
I just can't get them to show right. i am trying this:
[SimpleGameAppDelegate get].adView = [AdWhirlView requestAdWhirlViewWithDele...
I would like to create a scrolling counter and I'm wondering on how to implement this.
Should I use for each digit a separate view and animate the view upwards or downwards to create the scrolling effect?
Or is there a better way to do this ?
...
I'm currently doing the following to clear out an NSMutableDictionary
[myDictionary release];
myDictionary = [[NSMutableDictionary alloc] init];
The release line doesn't actually release any objects in the dictionary. I can still see all of them on the next line. It isn't until the alloc line is executed that the dictionary is zeroed...
I have a UIProgressView that I'm using to visually represent a one-minute timer. Its width is 280 pixels. I'm using NSTimer to gradually decrease the value of 'progress', starting at progress=1.0. 'Progress' gets updated once every tenth of a second. For all but the final two seconds, it does exactly what I want it to.
Once the valu...
i get image from uiimagepickerviewcontroller and set it in global file but when i try to retrieve it from global it will not display in uiimageview
following is code of delegate method form which i get image
-(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *...
I'm creating a new thread like this:
[NSThread detachNewThreadSelector: @selector(myMethod:)
toTarget:self withObject:filePath];
and in the method I do:
- (void) myMethod:(NSString*)path{
NSAutoreleasePool *pool = [NSAutoreleasePool alloc];
[UIImagePNGRepresentation(theImage) writeToFile:[path stringByAppendingString:@".png"] atomic...
I have a UIView with three UIScrollViews. I load each with custom UIImageViews that already have their images assigned. The custom UIImageViews are simple and only introduce a few new properties that allow for tracking the imageviews within the scrollviews.
Images load from disk very fast. The code below executes very fast but I have...
What's the quickest or best way to create and submit a form to a remote web server (http) using NSUrlConnection?
I assume I can build the form in Interface Builder, but I'm clueless as to where to go from there, even though I've read several resources on both (including the docs). Just not sure how to put two-and-two together.
...
I'm using a NSTimer to fire a drawRect within the app's main view. The drawRect draws a few images, and blends each using kCGBlendModeScreen (which is an absolute must). However, the drawRect takes just a tad longer than desired, so the timer doesn't always get fired at the desired rate (more like half as often).
I've optimized the grap...
I load a UIImageView with an image depending on user interaction. When the parent view is initially displayed, no image has been selected and the imageview is black. If the user leaves that view and comes back, the image is still there. I've tried
myImageView.image = nil;
upon leaving the view but the image remains. How can I remo...
To extend on the subject, ...without crashing? I load about 15 full size images from the photo library in UIImageViews and get out of memory warnings and eventually an app crash. These images range from around 250KB to 400KB. The UIImageViews are set to aspect fit.
The photo library seems to load smaller file size versions of images,...