I'm using an array to store cached objects loaded from a database in my iPhone app, and was wondering: are there any significant disadvantages to using NSMutableArray that I should know of?
edit: I know that NSMutableArray can be modified, but I'm looking for specific reasons (performance, etc..) why one would use NSArray instead. I ass...
I'd like to have something in my app that is just like Twitter but not Twitter. Basically it will be a place people can submit messages and do not need an account. They only way they can submit is through the app. I want other app users to see the submitted messages nearly immediate. I believe push notification can do that sort of wo...
hi i am new to iphone application development, i want to design an alert view, which has 2 buttons, OK and cancel. On Ok Button the i will print say an message hello and on cancel button i will print cancel..
Please help how am i to do it
...
I did everything according to documentation.i marked both the Apple WorldWide Developer certificat as always trusted..
and the iPHone Distribution one as Always trusted, but i faced following error message.
/Users/keyss/Desktop/Deep/Free_Version/######/build/Release-iphoneos/####.app: replacing invalid existing signature.
/Users/keyss...
I'm using ASIHTTPRequest to communicate with the server asynchronously. It works great, but I'm doing requests in different controllers and now duplicated methods are in all those controllers. What is the best way to abstract that code (requests) in a single class, so I can easily re-use the code, so I can keep the controllers more simpl...
I just dont understand, I have used notifications a trillon times, but today I cant seem to get notifications to send from a particular object.
This is in a view controller...
- (void)buttonPressed:(UIButton*)sender {
NSLog(@"buttonPressed");
[[NSNotificationCenter defaultCenter] postNotificationName:@"test" object:self];
}
and this i...
With APNS, when a device registers, how long is the token it registers with good for? The entire time the app is installed? I seem to recall a note in the documentation saying it was only good until sync/reset, but looking at the docs again I can't find that note (and it hasn't held true in my (admittedly non-extensive) testing). Can any...
I'm trying to get my iPhone to vibrate while I'm recording.
I've tried this:
UInt32 category = kAudioSessionCategory_PlayAndRecord;
status |= AudioSessionSetProperty(kAudioSessionProperty_AudioCategory, sizeof(category), &category);
UInt32 allowMixing = true;
status |= AudioSessionSetProperty (
kAudioSessionProperty_OverrideCate...
Hy i'm having problem when using addSubview.
Example code:
ParentView *myParentView = [[ParentView alloc] initWithNibName:@"ParentView " bundle:nil];
ChildeView *myChildeView = [[ChildeView alloc] initWithNibName:@"ChildeView" bundle:nil];
//... parent frame resized with setFrame lets say to x:0, y:0, W:320, H:411
[[myParentView view...
Given all the issues around hidden APIs and Apple now checking for them before releasing anything into the app store, how can you be sure if a particular framework is using hidden APIs? For example, I like the Google JSON framework: http://code.google.com/p/json-framework/. I have no idea if they are using hidden APIs.
What else is th...
I went through the tutorial here: http://www.switchonthecode.com/tutorials/using-core-plot-in-an-iphone-application, and I can get a graph to show, but I don't see any tick marks or labels on my axis set. Is there something simple I'm overlooking? Below is my code to create the graph, and I also implemented the delegate functions. I am s...
Does anyone have any info or code on how to can hide a navigation bar and toolbar when the user touches the iphone screen.
Basically I have an image gallery and I want to see the images in the whole of the iphone screen.
also im trying to implement a button so the user can download the image i had no luck on my search on google.
Thanks...
I'm starting to understand RunLoop as analogous to Event Queues in Java. Wgat I'm now trying to do, merely to understand better, is create a background thread in an application that runs its own RunLoop. I get as far as this in an example ViewController and then get stuck:
@implementation iPhoneRunLoopsViewController
-(void) workerMain...
How do I access any classes in a library when all I have is the .a file? I've included the -ObjC linker flag and added the .a file to my project. Still, none of the classes appear in code hints.
...
I'm getting reports of memory leaks in my app, but I can't track down exactly what is happening. I have a function which takes out an old view and swaps in a new view. I'm not using NavControllers or any @properties; I'm managing my top-level window directly.
-(void)swapInView:(UIViewController*)newViewController
{
[currentViewer.vi...
Probably a newbie question, but:
I have a UIImageView that zooms and translates using multitouch. The built in animation feature is very handy, and works great. However, now I want to draw on top of it. The problem is that anything I draw goes beneath the UIImageView. If I switch to UIImage, and draw it myself, then the animation do...
I need to fake a real touch event programmatically, so that any subsequent touch (from the users finger, for example) will immediately result into a -touchesMoved.... message rather than -touchesBegan....
Any solution how to do that? I know Three20, but I need something legal.
...
Hi everyone.
I'm fairly new to Quartz 2D.
Imagine the following scenario:
You have a circle-shaped mini map view.
I'm drawing triangle (the arc isn't important right now) on top of the map. This shape represents the visible area.
I need to have the triangle shape rotate along the mini map as the user changes orientation.
Currently th...
Im doing an Iphone app with a UIPickerView. The picker view has two columns that contains NSStrings.
I have a button that generates a NSString containing the selected value of both columns in the PickerView and prints it in the log.
The problem is that it only prints the first two items in the picker view even if i change the selected v...
I want to use two labels on the same view in an iPod Touch application. I have created the two labels, but I only know how to access on of them. Does any one have an example of how to do this?
...