I have a UIViewController subclass that accesses self.navigationController in viewDidLoad:. Depending on where it is in the view stack, I will either get the navigationController or I will get nil.
If my stack is "RootViewController -> MyViewController", I get a valid pointer.
If my stack is "RootViewController -> AnotherViewControlle...
I'm interested in doing an iPhone app for my day job as a pet project to learn iPhone app development. I'm curious how many companies are doing corporate iPhone apps (for internal use or for customer use). Does anyone have examples of how companies are doing iPhone apps?
...
Hi all,
I'm trying to understand how strategies some folks use to distinguish instance vars vs. properties. A common pattern is the following:
@interface MyClass : NSObject {
NSString *_myVar;
}
@property (nonatomic, retain) NSString *myVar;
@end
@implementation MyClass
@synthesize myVar = _myVar;
Now, I thought the entire prem...
What is the equivalent function of gluBuild2DMipmaps() in OpenGL ES on an iPhone?
...
Are there any other good graphical administration tools for SQLlite on the mac, instead of the Firefox Extension?
...
Hi There,
What would be the quickest route for a developer to learn to game development on the iphone.
Ive some .net winforms and webform experience but no experience with direct x or any graphics and game dev.
In my spare time I want to learn these skills but would like to learn via the iphone.
So Im just wondering what are the best re...
I am creating a modal view which is opened using the following code
[[self navigationController] presentModalViewController:registrationController animated:NO];
And until recently the following code was used to hide it on a button press
[self dismissModalViewControllerAnimated:YES];
However for some reason that line is no longer re...
I previously used the following code for changing the size of my cells which use a custom tableviewcell
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
return 61;
}
However I've created a new one on a different view and the above code is never being called.
The TableViewCell is actu...
If so, what do you need to provide online and in a real apple shop. I am gonna check it myself, but am asking for a heads up.
...
I can't seem to find any documentation online about this, and what I am googling is giving me a lot of conflicting information...
...
I don't really understand what this function is good for. Can someone explain that (maybe with some examples)?
Can I rotate an UIImageView object with this one?
...
I have the following method that should populate the cells of my UITableView with data from an array. I want to get the data from the array using the row that the data is being loaded into as the index.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
cellComments=(FullCommentC...
Apple's sample app named Reachability shows how to detect connections. If you have only wifi but not internet, the app stalls for over a minute on the second line below:
SCNetworkReachabilityFlags reachabilityFlags;
BOOL gotFlags = SCNetworkReachabilityGetFlags(reachabilityRef, &reachabilityFlags);
SCNetworkReachabilityGetFlags comes...
Safari HTML Reference: Supported Attributes says:
contenteditable
If true, the element can be edited on
the fly; if false, it cannot.
Availability
Available in Safari 1.2 and later.
Available in iPhone OS 1.0 and later.
However, on my iPhone, I can't get it to work. Anyone have success with this?
You can try it ...
I have a few tabs in my iPhone application which take a few seconds to load (pulling large amounts of data from a local sqlite database). When the users touch the tabs it appears as if the application is doing absolutely nothing. I've attempted to put a window showing a spinner up, however it is never shown due to the fact that the pro...
The following method loads data from an array into custom cells of UITableView. The data is loaded in correctly. However, when I scroll down data in the above cells (the cells not visible) are changed to seemingly random elements in the array.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *...
I'm curious what some reasons might be as to getting a compiler error for simply importing a header file. If I comment it out, everything compiles just fine -- the header/implementation for the class I'm trying to import into one of my UIViewController's get passed the compiler without any warnings. However, as soon as I include it, I ge...
The property label is of type UILabel and is an outlet in UIViewController.
Why does the following work :-
[window addSubview:viewController.view];
[viewController.label setText:@"New Label"] ;
and the reverse sequence of statements doesn't change the default text in the label:
[viewController.label setText:@"New Label"] ;
[window ...
I want to convert NSData to a byte array, so I write the following code:
NSData *data = [NSData dataWithContentsOfFile:filePath];
int len = [data length];
Byte byteData[len];
byteData = [data bytes];
But the last line of code pops up an error saying "incompatible types in assignment".
What is the correct way to convert the data to by...
Update:
With iPhone OS 3.0+, the whole UIImagePickerController API has changed. This question and answer should be considered 2.2. legacy code.
When using the UIImagePickerController and you allow editing of the image. The iPhone allows the user to resize and pan the image. However, the max size of an edited image is capped at 320x...