I'm somewhat unclear on the object ownership patterns required for the following instances. When my UIViewController presents a popover controller, an action sheet, or another view controller as modal, am I required to hang onto a retained reference to that child controller until it's been dismissed?
In other words, do the following lin...
I've created a new app but not uploaded a binary (not ready for review yet).
However, I want to test in-app purchases.
The documentation seems to state that a bundle ID is required to create an in-app purchase product. Is there any way to specify this bundle ID for creating the in-app purchase product on iTunes Connect without uploading...
So I have a UIView that has been setup, and in each touch event handler I have an NSLog fire off a message to the console.
- (void) touchesBegan:(NSSSet*)touches withEvent:(UIEvent*)event {
NSLog(@"touchesBegan");
}
And that pretty much works as expected. But once I implement initWithCoder (even blank)
- (id)initWithCoder:(NSCode...
So, i got this Navigation-based App (with a custom NavigationBar - Category) and I have 2 problems here...
@implementation UINavigationBar (Custom)
- (void)drawRect:(CGRect)rect {
UIImage *image = [UIImage imageNamed: @"bg_toolbar.png"];
[image drawInRect:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
}
@end...
In my app I try to scroll a UITableView to the top once after I updated the content of the table. However, under some circumstance, my table is EMPTY. So I got the following exception:
Terminating app due to uncaught exception 'NSRangeException', reason: '-[UITableView scrollToRowAtIndexPath:atScrollPosition:animated:]: row (0) beyon...
Hi
I am currently playing with CoreData and have a problem with the CoreDataBooks Example from Apple.
Basically I just wanted to extend the data model. I updated the model class aswell and no compiler error, butr a crash when I want to start the example.
Unresolved error Error Domain=NSCocoaErrorDomain Code=134130 UserInfo=0x1316ce0 "...
Hey.
I've been writing my Universal application in portrait mode,
and now after about 15 nib files, many many viewCotnrollers,
i'd like to implement the shouldAutorotateToInterfaceOrientation and desing some screens in Landscape mode.
adding :
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientatio...
Hello! I'm diving into iPhone/iPad development and I'm trying to find an elegant mechanism for allowing the user to select dates. It seems to me that a calendar control would be the best way to go, but I don't see one in anywhere in the SDK. All all I see is this overblown, the-price-is-right-looking DatePicker control.
Is this th...
Hello. There are a few different 3rd party code frameworks that include calendar controls, but most of them have a lot of functionality I don't need, plus most of them lack sufficient documentation on how to use them and I'm not a proficient enough iPhone developer to figure it out using just the code. So I'm going to attempt to build ...
Hello
I'm making an eBook reader for the iPhone. I have made a page-turn with CABasicAnimation and it's working great. Now I want to do the page-turn "manually" by using the x-coordinate when your finger moves along the screen. I've achieve that, but it needs some tweaking to feel more "real". Because of the 3D effect (defined by transf...
Hey
I am writing a program, and one part of my program has a UItableView in which I set cell contents manually by using the following...
cell.textLabel.text = @"CELL CONTENTS HERE!";
How can I copy a string displayed in a particular TableView Cell into another NSString?
...
I have an app which gets some data from the web via an XML document. I have this working fine and have followed apples SeismicXML example (uses NSURLRequest etc). I am very new to this so I have to admit that I do not totally understand all the code that gets the XML - but it is working. My problem is that my app may be running for some ...
Hi,
I would like to download files directly from an URL to the disk using objective-c on the iPhone os.
Currently I am using NSURLConnection to send a synchronousRequest, writing the returned NSData into a file.
How can I change the download handling (still having the request beeing synchronous, it is already in a background thread) t...
I am pulling data into my iphone application using xml. The xml value is then placed in a variable.
example variable:
123 London road \n London \n England
The variable is then set as a label.
I want the line breaks to appear in the label, instead it is printing \n.
If i manually set the label value
locationLabel.text = @"123 Lo...
I just added a UIDatePicker to my iPad app using IB, linked it to its outlet in the code, saved it in IB, added the UIPickerViewDelegate to my UIViewController in the code, as well as added the UIDatePicker outlet in code. When I build and run, the app launches, but will crash intermittently when I attempt to open the popover view that ...
In the iPhone app I'm currently working on, I'd like two view controllers (I'll call them A and B) to have toolbars that are identical in appearance and function. The toolbar in question will look like this:
[(button) (flexible-space) (label)]
For posterity's sake, the label is actually a UIBarButtonItem with a custom view.
My design r...
Hi all,
Does anyone have an idea what do the mind mapping applications use for drawing: Quartz 2D or Open GL? What would be the best way to implement this kind of application? Any advice is welcomed!
Thanks!
...
I've been using the Activity Monitor to check the memory usage of my iPhone apps. I've noticed that the Real Memory climbs whenever I interact with the UI in any way, even if there's no code being called.
For example, I can create a brand new View-Based application and run it, and as I click or drag in the empty window the Real Memor...
As of 3.2 it appears that sqlite files are being cached. I discovered that when replacing a sqlite database file and loading its contents, stale data is returned from the overwritten database file. The contents of the new file are correct (as verified by NSFileManager contentsAtPath:) and on relaunch the new file is loaded correctly. A ...
In other words does the ability run background services to "finish your tasks" include sending sms.
...