I've got a UINavigationController that has a UITableViewController as it's root view. The UINavigationController is inside a UITabBarController.
In the UITableViewController (*viewOne), if I click a cell a the following code runs
UIViewController *newView = [[UIViewController alloc] initWithNibName:@"newView" bundle:nil];
[self.navig...
I have an ItemAddViewController, which presents itself as a modal view. One of the fields pushes a new view controller, CategorySelectionViewController, which allows the user to select a single category.
ItemAddViewController.h
@property (nonatomic, retain) Category *category;
CategorySelectionViewController.h
@property (nonatomic, ...
I am running iOS 4 on a jailbroken iPhone 3GS. Before I upgraded to iOS 4, I had installed Python on the iPhone and had found the following snippet of Python code to copy a variable (key in this case) to the pasteboard. I then was able to open another application and paste the value into a text field.
out = os.popen('\usr\bin\pbcopy',...
I'm working on a relatively simple 2D side-scrolling iPhone game. The controls are tilt-based. I use OpenGL ES 1.1 for the graphics. The game state is updated at a rate of 30 Hz... And the drawing is updated at a rate of 30 fps (via NSTimer). The smoothness of the drawing is ok... But not quite as smooth as a game like iFighter. Wha...
I'm creating a custom keyboard with say 10 UIButtons laid out in a horizontal row. The buttons span the width of the screen, are the same size and must sit flush against each other.
I would also like to allow the user to choose a button by sliding a finger along the row of buttons. A preview of the chosen button is displayed elsewhere o...
In the FBConnect.xproj, the feed string is as follows:
dialog.attachment = @"{\"name\":\"Facebook Connect for iPhone\",\"href\":\"http://developers.facebook.com/connect.php?tab=iphone\",\"caption\":\"Caption\",\"description\":\"Description\",\"media\":[{\"type\":\"image\",\"src\":\"\",\"href\":\"http://developers.facebook.com/connect.ph...
I'm 2 levels down on a UINavigationContoller having already pushed a few views. Now I'm looking at an image inside one of the pushed view controllers and when I tap an info button in the navigation bar, I want the sub view to flip leaving the nav bar in place. How do I get just the subview (the view that was pushed) to flip? Right now th...
It is supposed to be possible to install XCode + SDK on a PowerPC.
How easy is this? Can it be done with the latest version (3.2.2).
If not, which versions?
(I think the latest XCode needs an OS version that doesn't run on PowerPC)
...
Hello
I would like to get tap to focus in my app and the controls are hidden
Supposedly this is impossible but I know its not. I have a simple iAD dragged into an overlay, no code or anything. When I click on the iAD nothing. but when I close it with the home button I get a modal exit of the nonexistant iAD and the camera apps relaunch...
I'm trying to extract the year from MPMediaItemPropertyReleaseDate in an MP3 file using iOS SDK 4.0 but it seems to always return Jan 1 1801 for the date. Does anyone know how to properly extract that from the returned NSDate? Here's what I'm doing:
NSString *locale = [[NSLocale currentLocale] localeIdentifier];
NSLog([[mediaItem value...
Im new to obj-c and have trouble understanding the function autorelease. could someone explain to me when i should use it? and how is it different than release. also do I need to reset the autorelease pool? how? and when?
...
Hi All,
I'm streaming video to the iPhone and don't like the way MPMoviePlayerController handles things at the beginning. I noticed that when you click on the row to select a particular movie the app just sits there until it is loaded sufficiently to play it. So I popped in a UIImageView with a loading image and a nice spinner to keep...
basically im looking for something that will just turn xml into an nsdictionary hierarchy.
...
What gives? I've tried multiple browsers, using safari on a mac.... the description text will NOT take any returns / line feeds, they just get stripped out. It doesn't matter if you cut/paste the description in the description form box, or write your own, everything gets stripped of line feeds and it ends up looking like a wall of text.
...
Fairly new to the coding community and took over an app from my developer. I want to implement a Back button on the navigation bar of one of the views in my app. If you guys could point me in the right direction, that'd be greatly appreciated.
Thanks very much!
...
When I go into edit mode and reorder the cells in the table everything is fine. But when I reorder cells AND delete a row the app usually crashes: "SIGABRT". I'm using a displayOrder attribute in Core Data to keep track of the order of my rows.
GDB tells me that the problem is when I try to save the order:
- (void)setEditing:(BOOL)edit...
I'm trying to submit an update of an existing application on behalf of one of my clients, and I'm getting "Invalid Binary" failures from iTunes Connect with no explanation of the error. I'm leaving on a 2 week vacation without network access tomorrow, so I'm a bit desperate for a solution. Any insights are greatly appreciated.
This up...
I tried this code in the view controller, but it didn't work. Why is that?
- (void)viewDidLoad {
[self setBackgroundColor:[UIColor colorWithRed:1.0 green:1.0 blue:1.0 alpha:1.0]];
[super viewDidLoad];
}
...
Hi,
I have the following code, that leaks in instruments when running in simulator ( memomry allocation is stable though) and is fine on the device.
The code gets called everytime a button gets pressed.
Im a newbie - so any help and comments welcome :-)
if ( audioPlayer){
if ( [audioPlayer isPlaying] ) {
[audioPlayer stop];...
Hello guys!
Is there a way to remove the "userMessagePrompt" ?
I paste my code to publish a feed:
FBStreamDialog* dialog = [[[FBStreamDialog alloc] init] autorelease];
dialog.delegate = self;
dialog.userMessagePrompt = @"";
dialog.attachment = [NSString stringWithFormat:@"{\"name\":\"%@ AppName!\","
"\"href\":\"lin...