objective-c

UINavigationBar not updating on 'back' in landscape

Hi all. I'm working on a UINavigationController driven iPad app (testing in the simulator). There are only two UIViewControllers on the nav controllers stack. For demonstration, lets call them SetupController and ContentController. SetupController pushes a ContentController on the stack with [self.navigationController pushViewControl...

Custom cell just failing

Hi, I'm trying to use a custom UITableViewCell, and I've placed it in the same nib file as the UITableView controller. For this, the files are: NTItems.h, NTItems.m and NTItems.xib. I have defined the cell in the header file: IBOutlet UITableViewCell *cellview; and I've correctly applied the property: nonatomic, retain so it's there:...

Objective c formatting string for boolean?

What formatter is used for boolean values? EDIT: Example: NSLog(@" ??", BOOL_VAL);, what is ?? ? ...

How to send a array as a parameter to a web service using SOAP and objective C.

I'm working in a iPhone app that needs to send a array as a parameter using SOAP. this is the current request and connection: NSString *soapMessage = [NSString stringWithFormat: @"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" "<soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/20...

get window height/width in real-time

it's possible to get window width or height while resizing it? not on start or end of resizing (viewWillStartLiveResize, viewDidEndLiveResize), but in real time? ...

How can I make a ViewController conform to multiple protocols?

I want to include Core Location and I'm trying to follow this tutorial: http://www.mobileorchard.com/hello-there-a-corelocation-tutorial/ and I am using SDK 3.2.2. @interface MainViewController : UIViewController <FlipsideViewControllerDelegate>{ is the code right now. ...

iPhone Objective-C/Plain C Memory Management

Hi everyone, I understand Objective-C memory management but I'm using Core Graphics functionality such as CGRect, CGPoint, CGImageRef etc.. which is written in plain C. My question is how do i manage this memory or is it already handled for me? According to the Apple documentation if an Apple Objective-C function doesn't have copy, new...

UIView animation -- horizontal page curl... like a book?

I'm pretty sure I've run across this animation at some point, but I can't remember where or how to do it! I want the equivalent of UIViewAnimationTransitionCurlDown but a full page horizontal curl. Does anybody have code that does this? Thanks! ...

Is it possible to reset NSURLConnection after providing credentials?

I am calling a REST service that requires basic auth and I respond to the didReceiveAuthenticationChallenge delegate OK NSURLCredential *credential = [[NSURLCredential alloc] initWithUser:self.user password:self.password persistence:NSURLCredentialPersistenceForSession]; [[challenge sender] useCredential:credential forAuthentic...

How to implement checkout/basket system

Hi, I'm making an app for fun and would like to know how to implement a checkout/basket system on the app. Basically, a list of products is pulled in from a web server in form of XML file, which is then displayed in a UITableView controller. A tap on the cell takes the user to a more detailed overview of the product. The app would need...

Stopping network activity indicator.

I used the below code to load a webpage. Everything works fine, but I want to stop the network activity indicator after completing loading the webpage. How can we know that the webpage is loaded completely. Anyone please help. UIApplication* app = [UIApplication sharedApplication]; app.networkActivityIndicatorVisible = YES; // to st...

want to remove a specific collectionview item with the remove button on that view

I have a collection view item and its prototype view. Within that prototype view I have a little x button. I want that button to remove the exact collection view item that it is on top of. I can remove a selected item if I click on the space around the x button but if I go straight to clicking the button before clicking the item it ...

Cocoa touch - prepopulate facebook connect publish to feed

Hi, I'm using the iPhone facebook connect package. How do I prepopulate the "publish to feed" example or take out the message field? Something like this one http://www.burnthebox.us/mobile/iPhone/products/disconnect/instructions/images/DisConnect_FB_Publish_Story.png (The default in the example has an input text field) Also what woul...

registerForDraggedTypes with custom file formats

Developer Documentations doesn't provides fully describe of registerForDraggedTypes method. For example, i want that my app allow access only "*.abc" files. How can i do this? ...

NSMutableArray accessing issue.

I've searched and have no answer. I've created an NSMutableArray and am getting an EXC_BAD_ACCESS error in one place of access. Here. This is declaring in the .h file: NSMutableArray *buttons; ... @property (nonatomic, retain)NSMutableArray *buttons; And this is the synthesizing and implimenting: @synthesize buttons; ... - (id)init {...

Accessing NSMutableDictionary Across Classes

I have declared an NSMutableDictionary object in AppController.h and initialized in the corresponding AppController.m file. AppController.h #import <Cocoa/Cocoa.h> @interface AppController : NSObject { NSMutableDictionary *uberDict; } AppController.m #import "AppController.h" @implementation AppController - (id)ini...

Is there a notification when the iPhone spelling correction hint shows/hides?

Is there a notification on the iPhone like UIKeyboardDidShowNotification but for notifying when the spelling correction UI appears/disappears? Same question, but when inputting east asian characters (e.g. Chinese), when the character selection UI appears/disappears? Or is there any other way to detect if these elements are visible? I ...

how can i use a particular UIActionSheet's button with some actioning (explain in brief) in iphone ?

how can i use a particular UIActionSheet's button with some actioning (explain in brief) in iphone ? ...

Objective-C Social Networking General Question

Hi, I've been developing application for Iphone and now I want to try to create appplication like social bookmarking but I didn't really find any help on the net. I will have a create a login/pass, retrieve data and display them. So I want to know what do I have to use to implement all of that for any social bookmarking website. If yo...

Missing HID_Utilities.h on Mac OS X

I'm trying to build with IO for Mac, but I don't seem to have the file with friends installed. When I googled for it, it seemed to me like it was part of, or related to, glut implementation on Mac? Glut is installed. What do I need to do? ...