Everytime I get a memory warning, my app crashes. In the debugger, it crashes on the line where i try to set self.navigationItem.rightBarButtonItem = myButton;
I implemented didReceiveMemoryWarning:
and didn't include [super didReceiveMemoryWarning].
However it still crashes. Why is my view reloading?
...
The data source for my table view is a plain NSMutableArray that will be populated as the app runs, but will be empty when the Table View first loads. The class interface looks like this...
@interface ViewController_iPhone : UITableViewController {
NSMutableArray *serverList;
}
@property (retain, readonly) NSMutableArray *serve...
I used to use Shark for this, but with the upgrade to iOS 4 Shark is flubbed, with no plans by Apple for fixing this. So now I'm trying to massage time profiler into giving me the data I need in a simple, easy to understand format.
I've got a number of steps in a typical workflow for my application, and I want to determine the time it i...
I have kind of a unique problem in the project I'm working in. What I'm doing is creating sort of a "wall" of scrollable images that are downloaded from a server that our user can flick through on the iPhone. But the problem is we're having trouble coming up with a good memory management plan here. What we have running right now is a cla...
I know NSNumberFormatter allows you some flexibility in customising the textfield but if you need a more specific formatter, how you would do it please?
For example:
Timecode "03:50:02:25"?
or
Concatenation of strings "6,264 feet"?
Thanks.
...
I have the following:
NSDateFormatter* df = [[NSDateFormatter alloc]init];
[df setDateFormat:@"yyyy-MM-dd'T'HH:mm:ssZ"];
NSDate* date = [df dateFromString:[sDate stringByReplacingOccurrencesOfString:@"Z" withString:@"-0000"]];
[df release];
I would like the output string to be "9/20/10"
How can I do this?
...
Hi,
I'm designing an iPhone app right now that uses a custom UIView that displays a photo and then some quartz drawing over it. Right now, the drawRect function for the view looks like this:
[image drawInRect:[self bounds]];
//some quartz drawing code here
The problem is that when the image is hi-res, the program lags a...
I am having trouble understanding how Core Data works conceptually and in terms of code.
I get that there is a coordinator and a context. I also get that there is state management. How do they work together?
I don't understand how I can store, say, an image and a few strings as an object.
Let's say I want to retrieve the image and the...
I would like to add the text "Sent from " to the bottom of the message
if([MFMailComposeViewController canSendMail]){
MFMailComposeViewController *controller = [[MFMailComposeViewController alloc] init];
controller.mailComposeDelegate = self;
[controller setSubject:[NSString stringWithFormat:@"A message from: %@",se...
I have a big webview in my iPad app and scrolling performance seems to be a big issue, especially the first time you browse the webview. In mobile Safari, the scrolling is extremely smooth and the page simply appears as a transparent checkerboard pattern and loads in as it comes into view. From what I've read, the way to handle this is u...
I am dynamically creating buttons on iPhone app.
UIButton *btn = [UIButton buttonWithType:UIButtonTypeRoundedRect];
[btn setTitle:atitle forState:UIControlStateNormal];
[btn addTarget:self action:@selector(buttonTouched:) forControlEvents:UIControlEventTouchUpInside]; // handle touch
[buttons addObject:btn];
----------
-(void) b...
Hi,
I have 2 String Operations I would need relevant in Object C
// Get the newstring from mystring start at counter
Java: newstring = mystring.substring(counter)
OBJ-C: ?
// Get the position from searchstring in mystring
Java: startpos = mystring.indexOf(searchstring)
ObJ-C: ?
Would be great you can help
Thx
chris
Edit: I ha...
I'm trying to convert the following NSString api call to a NSURL object:
http://beta.com/api/token="69439028"
Here are the objects I have setup. I have escaped the quotation marks with backslashes:
NSString *theTry=@"http://beta.com/api/token=\"69439028\"";
NSLog(@"theTry=%@",theTry);
NSMutableURLRequest *url = [[NSURL alloc] URLWit...
I'm trying to provide an IBAction method for common functionality that is required at various parts of the app.
i.e. Login is implemented modally, and if it succeeds results in a notification that allows all loaded view controllers to react to this event (transition from anonymous to authenticated)
@interface MyAppDelegate : NSObject <...
Does anyone know how to find a list of all the possible error codes thrown by the ostest utility, and their meanings? I noticed this to be a common problem for people, where they ask about an OCUnit failure with some code 138 or 139 that is completely opaque to them, and somebody who has encountered that particular error number points ou...
I'd like a UIView to slide up from the bottom of the screen (and stay mid-screen) like a UIActionSheet. How can I accomplish this?
UPDATE:
I am using the following code:
TestView* test = [[TestView alloc] initWithNibName:@"TestView" bundle:nil];
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.4];
[UIView setAni...
Hi All, Im just wanting to know what control to use to mimic the editable menu like the facebook app menu (i.e. 3*3 buttons and the user can click and hold on the menu and it will than allow them to edit the menu by dragging and dropping the buttons around the screen).
Thanks
...
I want build a app, in that app i should able to shear my database with every one.
Is there any method to do that?
...
Hi everyone,
I post this topic because I have a problem with my iPhone application since 3 days. I hope someone can help me because I'm going crazy.
Here is the thing : I fill in an object userXMLData,in the delegate of my application, with a XML Parser. This object contains many NSStrings and a NSMutableArrays which contains objects t...
I am looking for mobile apps that will help me be more productive and be all around more useful as a programmer. I have the Dropbox app and Awesome Note. As a programmer what apps or tools do you use on your IPhone/IPod that help you be more productive etc...?
Ideally I am looking for SRC control, SSH tools, Web development-related apps...