cocoa-touch

Bootstrap Server Error in Xcode IPHONE

I get the below error many times and this error makes it impossible to run my application unless i restart the whole MAC. This is not caused due to changes in code. ERROR : "Couldn't register com.yourcompany. with the bootstrap server.Error: unknown error code.This generally means that another instance of this process was already runn...

UiTabViewControllers+UINavigationControllers+UIViewControllers Orientation

I have a UITabViewController application with 4 tabs and each tab with a UINavigationController, each with a UItableView. When a row is clicked it navigates to another view. I would like to support Landscape Orientation only for a certain UIViewController and not in any other view. When I set "return YES" on each UINavigationcontrollers ...

How to call a selector in a different class

How would this code be different if the method was in a different class? [saveButton addTarget:self action:@selector(saveArray) forControlEvents:UIControlEventTouchUpInside]; ...

When/where to startUpdatingLocation?

The determination of a position takes some time. When and where should the location manager be started? Now I'm starting the location update one view before the result view (which needs the location) is loaded. If the user taps to fast I get 0.0 coordinates. To get the right timing the startUpdatingLocation should be called three views...

Programming an app similar in appearance to the Facebook app

Hi everybody I'm programming an iPhone application. This application contains a home page, which I would like to be almost the same as the one in facebook for iPhone : rows of icons, each icon corresponding to a category of my application. I'm a newbie in iPhone development, and I can't find which control is used to show this view. Cou...

How can I understand this crash log?

Looks like its related to NSURLConnection, but not sure how I can diagnose? Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x1ab98c00 Crashed Thread: 0 Thread 0 Crashed: 0 libobjc.A.dylib 0x000027da objc_msgSend + 18 1 CFNetwork 0x000...

Combining objects in an array

I have one array that is pre-filled with dictionaries with each dictionary consisting of two keys. { name = object1; quantity = 5; }, { name = object2; quantity = 2; } I want to be able to add more objects and combine any duplicate dictionaries. So for example, if I added 5 of object one and 3 of object 2, this would be t...

Can you programmatically accept a spelling correction in UITextView?

I have a button that inserts a character into a UITextView. I want this button to behave as the spacebar button does; I want the pending autocorrect suggestion to be accepted upon pressing it. Can this be done? If so, how? Thanks! ...

Rotate an image to direct to a well know point using compass heading

As a proof of concept, I want to create an application that retrieve the current coordinates, calculate the direction towards an another point and, using compass, rotate an arrow image to direct to that point in space. I know how to retrieve current coordinate and to rotate the image through CGAffineTransformMakeRotation, but I haven't ...

UITableViewCell with a UIButton

I have UITable which contains some UIButtons. I would like a way to use the label. The problem I have is that I need two tag labels, one for retrieving the cell in tableviewCellWithReuseIdentifier and configureCell. Until recently I have been using the UIButton.title to determine which row in the table I selected. The (invisible) text...

exception thrown trying to insert new table row into section

I seem to be encountering a very odd problem which only occurs when trying to insert a new NSManagedObject into a new section. Basically my sections are days and individual cells are associated with times. When I MOVE an object to a day which doesn't currently have another object (table row) associated with the day, the table needs to cr...

problem installing CorePlot

I attempt to install CorePlot according to the readme file, but as soon as I add $HOME/Library/SDKs/CorePlotSDK/${PLATFORM_NAME}.sdk to Additional SDKs in the project settings I get a massive spew of compile errors trying to compile the PCHs. I've followed the rest of the install procedure and I continue to see this problem with header ...

Duplicate interface declaration for class 'Foo'

I was working on my program, and it seems something in the settings changed. Suddenly I have the error "Duplicate interface declaration for class 'Foo'". It mentions a header file being duplicated but there's only one copy. Interestingly this is only happening in debug mode, not device mode. Does anyone have any idea what might be wron...

How to handle gestures for view, that contains a lot of child views, that also handle gestures?

I have a large calendar view, that contains a lot of child views, that represent some calendar entries. The child views should respond to tap, tap-n-hold, double-tap. But, I want a large calendar view also respond to such gestures as pinch-to-zoom and swipe, even if a finger crosses somehow child views. By now, there is an overlaying tr...

Iphone - Writing a media player with lyrics

Hi all, I want to write a simple media player which displays lyrics that are retrieved from the web. I know once LyricWiki was such a source, but now no longer exists. Does a new API or source for lyrics exist that I can use ? When I do get the lyrics, how do I sync them with song ? I know the MPMediaItem class has the MPMediaItemProp...

Which Cocoa Touch control is this (screenshot)?

Hi, I'm seeing these all over the place but I'm wondering what controls are used here? What is the thing with the arrow pointing right? Is it a UIRoundRectButton with a ">" (greater than) character? What is the box with the rounded corners below which allows separaring content using a horzontal line? Also looks like a button... Th...

looping through an NSMutableDictionary

How do I loop through all objects in a NSMutableDictionary regardless of the keys? ...

Iphone: Error while Inserting Objects in Core Data

I have a Uitableview that loads data from a parsed xml feed. when the feed is first parsed all the text data is stored in an entity NewsItems in core data. after the table is loaded the images asociated with each object are fetched asynchronously and stored in a separate entity NewsImages, after the feeds/images are stored locally all da...

UIButton moving and touch

I've read several topics to moving a UIButton and can touch the button when its moving. Now i'm using a UIView beginAnimation, but the button can't be touched when its moving. I've also read something about a NSTimer, but this is not the best way to do in my project. Is there another way, someone has the same problem? Thanks for any h...

Is there a good HTML template engine in cocoa touch?

In my iphone app, I want to populate UIWebView with some html generated from a templates. Is there a good opensource template engine library for cocoa touch like jinja or smarty? ...