cocoa-touch

Adding new views to a window / changing view

Hi, I asked a question on here last week and I have tried to follow examples but not having much joy, So I am trying to create a app that will have a main window. In this window I want to be able to display 3 or 4 different views (not at the same time) which the user can select the view via a button press. I did not want to use a navi...

One UIViewController, can be delegate for one pickerview and for a an animated view at the same time????

Hi!! I have one mainViewController that is also a delegate for a pickerview contained in the mainView. I have also another view that contains a coverflow. I want to add the coverflow to my main view and make the mainViewController it's delegate. I do not know if it is possible. I used the following with no success: @interface MainVie...

iPhone Using a Modal View from a TabBar View

Using a Modal View from a TabBar View I always get the following error: Error from Debugger: Previous Frame identical to this frame (gdb could not unwind past this frame) I have an App using a TabBar. From one of the TabViews I need to display a View modally. I try: if(self.gmailController == nil) { self.gmailController = [[GMail...

What does get-task-allow do in Xcode?

So when I set up my entitlements in my iPhone app project, I create a new Entitlements.plist, and set the value of get-task-allow to false. But why? What does this key represent? EDIT Note this is related to this question - I found that flipping the value of this key to true allowed me to install the app on my device) ...

How to disable highlighting of the app icon?

Hi, How can I disable the highlighting that appears on my icon while it's being displayed on the home page of iPhone? Thanks. ...

Custom button in navigation bar does not work

I have added a custom button (subclass UIButton) to my navigation bar but the button does not change states when clicked. The button is configured correctly as it does work in, for example, a table view. All advice is welcome. ...

iPhone SDK: After invalidating a Timer, how can I use it again?

I have set up an animation in Xcode using an NSTimer, and It kept repeating over and over, so i used this command: else if(gordon.image == pigImage11) [animationTimer invalidate]; So, when gordon (a UIImageView) image is set to pigImage11, The timer invalidates, this gave the desired effect of stopping the animation constantly rep...

iPhone API for Accessing Amazon S3 REST API

Does anyone have any suggestions for GETing from or POSTing to Amazon S3 services using their REST API via the iPhone. It does not look like it is possible but I may be reading the docs wrong. Thank you in advance for your help! L. ...

Whats the best place to set a View Controller ivar?

I have an XML reader class which I initialize with a URL - (id)initWithURL:(NSURL *)url This class adds objects to an array in the calling class using an instance variable // in the interface ViewController *viewController; // in the implementation [viewController addObject:theObject]; Now, I initialize my XML reader class, then s...

NSNotificationCenter: Do objects receive notifications on the same thread they are posted?

I am interested in knowing whether I can expect the observing object's method to be pushed onto the stack before the posting object's method has been completed and removed. ...

selection color for a UITableViewCell

If I have a custom UITableViewCell that doesn't use the textLabel built in to the cell but instead does its own drawing, how can I change the appearance of the contentView on selection, like it does automatically for the default text (customizable by setting the selectedTextColor:)? If I change tableView:willSelectRowAtIndexPath:, then ...

adding search bar under the navigation bar?

i want to add a search bar under the navigation bar with uitableview. and i want to search from the database? any idea how to do this ...

Does the timing of calling the method of the super class matter in ObjectiveC?

Does it matter if I call the method of the super class first thing or at the end? For example -(void)didReceiveMemoryWarning { /* do a bunch of stuff */ [super didReceiveMemoryWarning]; } versus -(void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; /* do a bunch of stuff */ } same question for other method...

how to show strings randomly in uitableViewCell?

i want to show 4 options(strings) randomly on uitableviewcell how do i achieve this??? ...

How can I set a UITableView to grouped style

I have a UITableViewController subclass with sections. The sections are showing with the default style (no rounded corners). How can I set the TableView style to grouped in the code? I'm not using Interface Builder for this, so I need something like [self.tableView setGroupedStyle] I searched on Stack Overflow, but couldn't come up wi...

How can i split an image in to multiple parts ?

Can any body explain me how an image can be (equally and unequally) split in to multiple parts in iPhone OS. It is very helpful to me if you provide sample code. ...

Extracting localization strings from Settings.bundle plists

If you are building child panes in your Settings.bundle, you'll end up with several .plist files. When it comes time to localize your project, you find the creation of the corresponding .strings file a bit tedious (I know I do). Here's a handy list bash script which will (i) find tags, (ii) extract the contents of the following tag, ...

How to create a UITableViewCell with a transparent background

Hi, I'm trying to set the background color of a UITableViewCell to transparent. But nothing seems to work. I have some images/buttons inside the tableViewCell and I would like to make the white grouptableview background dissapear to get a 'floating' effect for the images and buttons (as if they were not inside the tableview). Any idea ...

My iPhone Simulator 3.0 AddressBook is empty!

Anyone know how to repopulate my Simlator's AddressBook with Johnny Appleseed, etc? Or, my own data. Doesn't matter.. It's just that it's somehow empty now and useless for testing. ...

AnalysisTool / Clang results: ivar naming convention violation

AnalysisTool (a Clang GUI front end) states some fo my ivars are improperly named: Specifically: the name of instance variable 'groupName' doesn't start with the 'm' prefix What does the 'm' prefix stand for in Cocoa? Should I be using it? Or is this a false positive. ...