Curious what practices people have learned before making their final build and submitting to the App Store? Aside from switching switching from Debug to Release & commenting out calls to NSLog what other basic and/or not so basic things should we be watching out for?
...
Hi Everyone:
I have a very simple class (shown below), however every time I run it, it returns:
Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key field1.'
I am drawing this nib file to the screen in the following way:
UIVi...
I have a button in my program to start a new game.I didn't
use IB,done it manually.Now the problem is that how will i identify
that the button is pressed .Is there any built-in method like
'ButtonClick' or something??I have used :-
-(void) touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event
In this function i used
CGPoint pt = [[t...
I am new to Objective-C and Cocoa-Touch development. I have an ON/OFF Switch on a view that is supposed to disable/enable hide/show another button on the same view, but for some reason it doesn't work sometimes, this is the behavior:
1st click: Switch to OFF, Other Button hidden => OK
2nd click: Switch to ON, Nothing happens => WRONG
3...
Hello everyone,
Actually, I'm working on a Core Data based iPhone application. I have two entities which contain more than 200000 rows each and I'm experiencing some performance issues during retrieval of data. For each fetch request, I must wait between 1 and 2 seconds before getting results.
I'm thinking of implementing a custom searc...
Hi,
Here is my code for making a bat flap its wings and respond to touches.
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
NSArray * imageArray = [[NSArray alloc] initWithObjects:
[UIImage imageNamed:@"Bat1.png"],
[UIImage imageNamed:@"Bat2.png"],
[UIImage imageNamed:@"Bat3.png"],
...
By default, when I observe the value of a UISlider, it only updates once, when the slider is clicked, not continuously, even thought that is the slider's setting.
Is there a way to get the continuous value change of the slider?
...
I have a typical RSS style application . I want to delete all the stories which are more than X days old, So that i dont keep filling up users HardDisk with old stories .
Now, I am wondering what the best time and place for doing such clean up would be ?
Is applicationWillTerminate in the app delegate right place to do it ? Also I thin...
Hi,
In the following bit of code, I'm setting the table view cell text with a value from the NSMutableArray 'categories' which is a property of my view controller. That works fine.
But when I try the exact same code in another method, it crashes (it compiles without errors or warnings). If I change the following line in the didSelect...
I want to load a word document using UIWebView. I used the code provided in
http://developer.apple.com/iphone/library/qa/qa2008/qa1630.html
to load the document.
But not all the documents load successfully. Sometimes I get an error
Error Domain=WebKitErrorDomain Code=102 UserInfo=0x145bc10 "Frame load interrupted"
The error seems to ...
I have two horizontally scrolling UIScrollViews stacked vertically on top of each other within one ViewController. Each UIScrollView takes up half the screen. I am trying to independently track the position of both UIScrollViews.
I have successfully used this to track the position of the top UIScrollView:
- (void)scrollViewDidScroll...
I've got three ViewControllers set up to handle three views. The problem that I'm having is that in the simulator the orientation is LandscapeRight (which is what I want), and the first view shows up correctly in that landscape view, but when I move onto the second and third views, they show up rotated 90 degrees counter-clockwise with ...
Hi Everyone:
I'm wondering if someone could direct me to an article that explains how to access the address book contacts in the form that Address Book on the desktop can read.
Thanks for any help!
...
Hi everyone. A link or a bit of code would be much appreciated!
I have an app that lets users take photos. Here's the code I use to create the jpeg file.
How can I add a geo-tag to the photo's EXIF data, assuming the parameter info has a lat and lon?
- (void) saveImage:(NSDictionary*) info {
NSFileManager *fileManager = [NSFileMan...
I expect this to work based on the docs here: http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/ObjectiveC/Articles/ocSelectors.html
SEL sel = @selector(loadMapType:[ms uniqueTilecacheKey]);
"error: expected ')' before '[' token"
...
I have a function that creates a UIView with a bunch of UIButtons.
Each button calls a function with a string for a parameter.
So, in my function I do something like:
[button addTarget: [multiRadio objectAtIndex:0]
action: NSSelectorFromString([multiRadio objectAtIndex:1])
forControlEvents:UIControlEventTouchUpInside];
H...
i have a view with uiimageview and an UIimage set to it.how do i make image sharp or blur using coregraphics?
...
Hi guys, I'm a beginner programmmer, this is for xcode - iPhone. although i made alot of my iPhone app but i seem to lack some understanding of how a simple communication might work.
Specially when I've got 2 ViewControllers.
And I wana call one function of a ViewController from another ViewController. Both are under a tabbarControlle...
I would like to have a pair of scrollviews - call them scrollA and scrollB - on the screen that work in parallel. When the user scroll/zooms scrollA scrollB mimics that behavior, zooming and panning identically. And vice versa.
Is this possible? Thanks in advance.
Cheers,
Doug
...
In method viewForZoomingInScrollView: of the delegate to my scrollview I do the seemingly innocent:
// scrollView is the parameter passed to this method
float foo = scrollView.zoomScale
Boom! Crash, hello gdb.
Is this a known bug? Should I submit it?
Cheers,
Doug
...