iphone

Is there API to delete photo in camera roll?

Is there iphone API to delete photo in camera roll as Apple's photo app? ...

iPhone OpenGLES Plotting Problem

I started off with the default OGLES iPhone project, then I changed the Orthographic view to: float Left = -backingWidth/2; float Right = backingWidth/2; float Up = -backingHeight/2; float Down = backingHeight/2; glOrthof(Left, Right, Up, Down, -1.0f, 1.0f); so when I make the Vertices array I can assign the XY values of a grid withou...

iPhone OGLES Game Of Life Plotting

I'm developing an OpenGL-ES game of life program for the iPhone and I have an array that contains the boolean values of the entire grid, what I did for the array of the grid was: grid = (BOOL *)malloc(2*XSize*YSize*sizeof(BOOL)); and I want to know what would be a good way of plotting this linear array to the screen. I've tried to cr...

Run the same iPhone app on 2 devices at once?

I have an iPhone app that uses GameKit in Xcode. I'm having problems getting it to work, so I need to look at the NSLog output on the 2 devices at once. My problem is that when I click build and go, it runs it on the device that was connected most recently, and I would like to run it on the 2 devices at once and be able to look at the co...

NSFileProtectionComplete for iOS 4.0 apps

I saw a WWDC 2010 video about NSFileProtectionComplete and protecting app's data. Are there any examples out there? Does any one have sample code to share? ...

Learning Objective-C: Need clarification on what is happening in this code block

I've been studying the sample code Apple provides in their iPhoneCoreDataRecipes application and there are a couple of things they they're doing that I don't understand and I haven't been able to find a resource to help me with them. Specifically, the block of code in question is: - (void)tableView:(UITableView *)tableView didSelectRow...

Hide Settings Bundle in Settings.app

I have created an iOS 4.0 app with a Settings bundle. I am using the InAppSettingsKit (http://www.inappsettingskit.com) which presents the settings in the app. This allows the user to modify those settings directly from within the app, without the need to go to the external iPhone Settings.app. As the settings are accessible from inside ...

Convert iPhone app to iPad XIB File Problem

I have an iPhone app that I'd like to convert to an iPad app. To do so, I "Upgrade(d) Current Target for iPad", and then I got a new xib, "MainWindow-iPad.xib". I was building to iPhone/iPad, and correctly had the iPad main window xib set in info.plist. However, when I opened the MainWindow-iPad xib, I was presented with an iPhone-sized ...

iPhone, how to calculate iPhone device three axis angle via UIAcceleration ?

as topic, I am try to use the code as follows : xAngle = 90.0 *x; yAngle = 90.0* y; zAngle = 90.0* z; but seem it is not right (x,y,z is the UIAcceleration attributes x, y and z) am I miss some thing in this algorithm ? thanks for your help Best . ...

iPhone simulator doesn't quit previous version of app

Running the latest version of XCode, I run into the problem that when I try to start apps on the simulator multiple times. I have to quit the actual running app by clicking twice on the home button (multitasking task manager) in the simulator and quit the app. Otherwise a new 'build and run' simply opens the current running app in the si...

Unable to add new items to UIMenuController's menuItems

EDIT: I have modified Apple's colored tile example by adding UIMenuController *theMenu = [UIMenuController sharedMenuController]; theMenu.arrowDirection = UIMenuControllerArrowLeft; to applicationDidFinishLaunching and adding a UITextView right next to the reset button. If I double click on a colored tile, the copy paste menu correc...

colorWithPatternImage with iPhone 4 Retina Display ([email protected])

Thanks to SO's search function blowing up whenever I enter "@2x", it's difficult to tell whether this has already been asked... I've been using colorWithPatternImage: to build tiled background images for my various views. However, these predictably look like trash when viewed on the new iPhone 4 display. So I've built @2x versions of ...

Can any one help me in drawing a bar graph...?

In my application I have to read data from a file or core data and draw a bar graph using that data. Can any one help me in drawing the bar graph in a simple way? ...

iphone app webview link action

Is there a way to make the action of clicking a link in a html of a UIWebView to load another UIView and pass the value of the url to that view, instead of loading that html page in the same UIWebView. So basically, modify the default action of clicking a link in a UIWebView. Is this possible? ...

Make a UITextField active on load

Hey Guys I have an app that only has one text field and I want that text field active with the keyboard active when the view loads. Is there any way to force it? James ...

I used [scrollView addSubView:imageView] but imageView doesn't appear.

I'm developing iPad app using SplitView. And I put UIScrollView in DetailView by using Interface Builder. Then I add IBOutlet UIScrollView scrollView; in detailViewController.h that was automatically created by Xcode. And connected this scrollView to UIScrollView in DetailView.xib . And I added below code to DetailViewController.m . - ...

How to properly navigate from navigationController to tabBarController with it's own navigationControllers

Hello guys, I have a general design problem with iPhone application. I want to know the main principle how to go from normal view with navigationController to tabBarController with tabs where each tab has it's own navigationController (dont need first navigationController any more). Let me show you how I made this: First I added some ...

pushViewController is not changing the screen

I have this code to show a nib on click of row index UIViewController *controller = [[ShowFavViewController alloc] initWithNibName:@"ShowFavViewController" bundle:nil]; [self.navigationController pushViewController:controller animated:YES]; self.navigationController.navigationBarHidden = NO; NSLog(@"here"); but its not...

Custmizing the UINavigationBar

I would like to set the color of the navigation bar on my app as well as the text color. How does one do this? I have seen people explaining methods where subviews are added to the bar, but there must be an easier(painstakingly) method. Regards ...

how to make UIBarButtonItem send new address to UIWebView

I have a uiwebview embedded within a navigation controller. I would like the ability to change the uiwebview by simply clicking a uibarbuttonitem. anyone have any idea how to do that? heres the method i have right now. -(void)action { if (item.link) { self.linkString = item.link; } NSString *urlAddress = @"%@/#comm...