iphone

add to favorites button help

how would an add to favorites button work in order to take the controller selected and add it to a tab bar item, i tried using an ibaction to add an entry to an array however i wasnt sure on how to handle this problem. i would like to add a uibutton that adds an entry to this kind of array format rootArray = [[NSArray alloc] initWith...

How to unit-test IBOutlet connections ?

I've been trying to verify in my tests (GTM) that when a nib file is loaded, its IBOutlets were properly connected in InterfaceBuilder. However I keep getting nil references, despite calling [myViewController viewDidLoad] before asserting that the reference should exist. Are there any gotchas here, or should this be mocked somehow ? c...

iPhone app remembers last state (multitasking?) unwanted behavior!

User launches the app, quits, relaunches and the app shows up in the exact previous state, as if the app didn't quit at all. I have no custom save state support, so this is really baffling. It happens on one of the user's 3GS, but not on my 3G. Which seems to indicate that this is OS4's multitasking at work, because 3G isn't supported. I...

How to create core data for developing Alarm iphone application or any other solution instead of core data for data storing concept

Hi All, I am confusing about developing alarm iphone application of how to manage database for alarm list are displaying in UITableView control. It means that how to perform contineosly calling methods which contineosly fetching data from array or database for alarm ringing on the basis of time matching. Can any one solve this ...

UIScrollView cannot pan after zooming

Hi guys, I've seem to implement all the right code here. Is there something I'm missing in my code? // // ScrollyiPadViewController.m // ScrollyiPad // // Created by Sidwyn Koh on 5/19/10. // Copyright __MyCompanyName__ 2010. All rights reserved. // #import "ScrollyiPadViewController.h" @implementation ScrollyiPadViewController ...

how to start Application again in initial state not in current state in iOS4.0

Hi, as iOS4 feature application always stat in current state. means if i quite application on 3rd screen. and launch again it start from 3rd screen .so always i want to start application from initial state(1st screen) Any Suggation ...

How do we get the coordinates of an UIImageView programmatically?

I would like to get the coordinates of an UIImageView programmatically. How do I do this? For example I have a square. I want to get the coordinates of all the corners. How must i proceed? NSLog("%f", ImageView.frame.origin.x); NSLog("%f", ImageView.frame.origin.y); I get the topleft coordinate of the square. I must say that the squ...

glGenTextures returns zero in background thread

I need to load textures in background thread in OpenGL ES. But glGenTextures always returns zero when called in background thread. -(void) someMethodInMainThread { [self performSelectorInBackground:@selector(load) withObject:nil]; } -(void) load { GLuint textureID = 0; glGenTextures(1, &textureID); } textureID is zer...

NSCoding with as NSString inside a object

My issue is then i retrive my NSArray of Store objects, all my NSString properties are giving me BadAccess errors. The int and double works fine! store.h @interface Store : NSObject<NSCoding> { NSString *Name; NSString *Address; NSString *Phone; double GeoLong; double GeoLat; int ID; } @property (nona...

How should i remove a tabbaritem from in TabbarController?

Hi, How should i remove a tabbarItem from UITabbar Controller, When i try do this, the whole tabbar removed instead of single tabbarItem remove? Sri ...

maintaining selection in UISegmentedControl

Can i maintain the selected state of UISegmentViewControl segments?? i.e can keep a segment appear selected even if the user selects another segment?? I dont seem to find anything that does this anywhere!! ...

How to use local dictionary to my app?

Hi, In My application, how should i find meaning of the word, it should work both online and offline? Please help me out also is there any possiblilite to take local dictionary from iphone? Sri ...

How to devide a UIWebView into multiple pages (like iBooks)

I am trying to build an application in which I need to divide the webpage into multiple pages. These pages will then be shown as the pages in a book, like the iBooks animation. First problem to tackle is to divide the webpage into multiple pages and able to view it separately. Any inputs will be helpful. ...

how to remove App from App Store

Hi All, I want to remove my APP which is "ready for sale" from APP Store. As in docs I didn't found any "Remove from Sale" tab in 'Manage Your App'. Can anyone please guide me how can I remove App from App store. NOTE: I am very sorry for using this Forum which is meant for Programming.. I am helpless Thank You In Advance Rahul ...

UIImagePickerController Video question

Hi all, I am using the UIImagePickerController to let the user record video. The duration is limited to 10 seconds. I want to display a countdown in the corner while they are recording though so they know how long they have left. I am able to add this using the cameraOverlayView property. But I can't find anyway to get a call when they...

Adding NSOperation to NSOperationQueue that starts asynchronous ASIHTTPRequest

So I'm trying to do all my REST calls that download data on the background thread so that the UI stays responsive. I have a viewcontroller that contains a NSOperationQueue. I create an instance of my importer class that is a subclass of NSOperation. Inside the main() method of my importer, I am setting up a ASIHTTPDataRequest. I create ...

How do I chain two UIGestureRecognizers together?

What I would like to do is to detect a swipe gesture followed by a pan gesture as part of the same touch sequence. So the user first swipes an object to carry out an action, then, while keeping their finger on the screen, moves up/down to propagate the action to surrounding objects. I have a swipe gesture recognizer and a pan gesture r...

UINavigationController: Rotating the view of a covered controller

I have UINavigationController with two view controllers in it (C1 covered by C2). At some point the device is rotated. C2 needs to know the size of one of C1's views (C2 is a map for C1's grid and I need to draw the frame in C2's view). The bounds of C1 are updated when C1 is popped, but I need to get the updated bounds at the time of ...

Why am I getting a write error when copying a Core Data database between iPhone and iPad?

In my app I create and use a normal persistent store: - (NSPersistentStoreCoordinator *) persistentStoreCoordinator { // D_IN; if (persistentStoreCoordinator != nil) { return persistentStoreCoordinator; } persistentStoreCoordinator = [[NSPersistentStoreCoordinator alloc] initWithManagedObjectModel: [self mana...

Are there any good OpenGL ES 2.0 examples for the iPhone?

Starting with the iPhone 3G S, OpenGL ES 2.0 has been supported on iOS devices. However, I can't find much in the way of sample code for OpenGL ES 2.0 aimed at the iPhone, or even some generic examples. Where can I find sample code or tutorials about OpenGL ES 2.0 for the iPhone? ...