How can I check what hardware my iPhone app is running on?
I'm writing an app that needs to function differently if it is running on different models of the iPhone/iPod Touch. How can I check if the app is running on 3GS, 3G or other? ...
I'm writing an app that needs to function differently if it is running on different models of the iPhone/iPod Touch. How can I check if the app is running on 3GS, 3G or other? ...
Apple's "iPhone Development Guide" suggests on page 62 that "Because application tests run only on a device, you can also use these tests to perform hardware testing...". I'd like to run my OCUnit test cases in the simulator as well -- but haven't figured out how to do that. Is it possible? Or do I have to use Google's toolkit instead? ...
Is there any way to log into a Google account from inside an iPhone application if you know the username and password of the account. I want to be able to do this without making the user type in the information each time the app has to login. I need to do this so I can have a login system accessable from the iPhone SDK. Actually any l...
I am trying to make put together a simple application to control the phone services such as WiFi, Bluetooth, 3G, etc. using PrivateFrameworks or low-level API's. I am able to build the device and SSH it to my device without a dev account, and I have the include-2.1.SDK headers, but I am looking or some help in adding these PrivateFramew...
Hello, I will try to explain myself as best as possible, I know the title does not say much. Basically i have 4 Navigation Controllers embedded in Tab Bar Controller. What I want to do is have one of this Navigation Controllers push a new Navigation Controller embeded in aTab Bar Controller dismissing the original Tab Bar Controller. ...
I have an NavigationController based app where the data model is stored in the appDelegate after being fetched using CoreData. The views that display the data all have a pointer to appDelegate so that they can query the model for the required data. They then call methods in the appDelegate in response to user selections. My question is,...
I have an implict animation as follows: [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:1]; [UIView setAnimationDelegate:self]; ... [UIView commitAnimations]; When this animation begins and ends, it triggers these delegate functions: - (void)animationWillStart:(NSString *)animationID context:(void *)context;...
I have a RootViewController class and a UserSettingsController class. I have defined the UITableView methods (numberOfRowsInSection, cellForRowAtIndexPath) in the RootViewController class. I want to reload the table view defined in the RootViewController class from the UserSettingsController class. How can I get control of the tableVie...
Cocoa newbie here. I am working on an iPhone UITableViewController-based widget that can be used to edit date and text properties in an object set during initiation. Currently, I am attempting to do this with a @selector and NSInvocation as below. Note: the "targetObject" is the object set when the controller is initialized. - (IBAct...
Hi there, I'm trying to customize the UIImagePickerController for iPhone right now. I could modify the default buttons (take and cancel) as well as add more buttons. But I have trouble when attempting to make the customized button look-and-feel like the default iPhone's ones. At first I think that it'd be possible if I get and then clone...
Hi, In my iPhone application I have used (UITableViewCellAccessoryCheckmark) to add the checkmarks in the cells, - it is added to the cell at the right side of the cell. I want the checkmarks to display in the middle of the cell and after that a string should display. So that the user can set the cell item as checked or unchecked. Ple...
Iam a newbiew to iPhone development. Version of my SDK is 2.2 In my code, UIViewController is used to change view dynamically once the app is launched, a method in the UIViewController is called to know which view should be initialized along with parameters, which goes to a 'switch-case' and assign a view to current view according to th...
Hi, everyone. I feel good when I use Three20 framework to create a good iPhone application if you didn't try it before, just go here to try. but the I want your help me to force TTPhotoViewController to reload the image after it initialized. At the moment, it seems load the exist image before and didn't active to viewDidLoad. Could y...
For a cutom camera overlay I need to find out, when the iris is opened, because my overlay will allways shown while the iris is close (and then animating to open). Any ideas ? ...
Hi, I recently downloaded Apple's sample app CoreDataBooks and for the sake of learning decided to add a cell to the last record in the RootViewController.m table view, which would display the number of records that were fetched. The code I added is shown below. I didn't get to the point of adding the fetch count because I am getting b...
Is there a way to detect if the application lose focus because a phone call or because an other system message is on top of it. When receive phone the system call applicationWillResignActive, and when other message box from the system is displayed the same function applicationWillResignActive is called. Thans ...
Is it possible to make this go as granular as seconds without having to write a custom picker? ...
Hi, In my iphone application i have 4 cell in uiTable,and each cell having Integers values(10,12,13,14).How to retrieve the integer value while i click on each cell? And how to put if condition to check whether the value of the cell is same or not? i.e.(if(cell value==condition){ } Please provide any code snippet or other solution. T...
Hi Everyone, Maybe this is a silly question but I'm having a problem with switching the view in a subview. Let me explain the code structure: I have these class files: /classes/MySoftwareAppDelegate.h /classes/MySoftwareAppDelegate.m /classes/ViewController.h /classes/ViewController.m /classes/LoginController.h /classes/LoginControlle...
We want to move an application to iPhone, without iTunes. There are two questions: 1) how does the application which moves other applications to iPhone connect to iPhone? 2) if we use iTunes to do that, which method implement connecting to iPhone in iTunes's API. ...