iphone

what kind of certificate do I need to test apns using ad-hoc distribution?

I can't understand from Apple's docs if I need a production certificate or a development certificate... ...

Any success using Apache Thrift on iPhone?

Has anybody done or seen a deployment of Apache Thrift in an iPhone app? I am wondering if is a reasonable solution for a high-volume, low(er)-latency network service for iPhones compared to HTTP. One noteworthy thing I found is a bug report about running Thrift on the iPhone, which seems to have been fixed. But that doesn't necessaril...

CorePlot problems

Hi, I started with core-plot now and came to some problems. I followed the tutorial from this page: http://www.switchonthecode.com/tutorials/using-core-plot-in-an-iphone-application and completed with the instructions from this page: http://code.google.com/p/core-plot/wiki/UsingCorePlotInApplications (such as -all_load). But I still h...

What is -[UITableViewDelegate willDisplayCell:forRowAtIndexPath:] for?

In all of my UITableView programming, I've always configured my UITableViewCells in -[UITableViewDataSource tableView:cellForRowAtIndexPath:]. Now I've come across the -[UITableViewDelegate willDisplayCell:forRowAtIndexPath:] method. That also seems like an appropriate place to do cell configuration. My question is: what's the appropria...

How can I use NSZombie in Xcode to find out where is a memory leak going on ?

How can I use NSZombie to find memory leaks? Will it help to display in which file and at what line a memory leak is going on? ...

Does release code flow differently from debug?

When I run this code in device release mode, it pulls a "SIGABRT" on the "[mapView setRegion:region animated:TRUE];" line. However, I don't get the problem in either debug or simulator mode. I'm a novice in xcode. What am I doing wrong? - (void)initUI { // add a map view in available area startupPage = [[CSNet alloc] init]; positio...

Automated Interface testing on iPhone

I like using the UI Recorder in Xcode for testing a UI in the simulator. However, that I know of, UI Recorder doesn't work on the device. Is there a similar tool for automating UI testing on the device? ...

how can i read from the documents directory in the iphone at run time?

I'm implemanting in an iphone app a .plist file that contain some initial parameters that i'll use later in the app, i create a NSMutableArray myArray with a NSMutableDictionary with some keys then i create the file: NSArray * paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString * documen...

Determine font(s) used in uipasteboard text on the iPhone.

Here is the scenerio: The user copies random text with mixed fonts. How do I determine the font(s) used? When the text is pasted from the UIPasteboard into a textview it correctly shows the mixed fonts, so I believe the information is available. UIPasteboard *pasteboard = [UIPasteboard generalPasteboard]; textView.text = pasteboard.stri...

TextField Keyboard startup in Number mode

I need the UITextField "ASCII Capable" keyboard to come up in numeric mode. I can't find an API for this, what am I missing? ...

How do we clear out contents in NSMutatableData

how do were clear an NSMutatableData wihtout using release and then re-alloc/init again to be used again? I was looking at resetBytesInRange to be set at zero but I am unsure of this. Anyone can help? ...

iPhone memory management question: retaining iterated UITableViewCells?

I'm still shaky on the subtler aspects of memory management, and I have a question about the aggressive retaining/releasing I've seen in some sample code. Specifically: - (void)loadContentForVisibleCells { NSArray *cells = [self.tableView visibleCells]; [cells retain]; for (int i = 0; i < [cells count]; i++) { ...

Codesign only succeeds after other xcode iphone project is successfully signed

Hey guys, I have a weird issue. Codesign refuses to sign this big project I have, project A, but does signs the other, project B. However, when I have signed project B, it also can sign project A all of a sudden. I am 100% certain I didn't change anything else. The steps I took were: Try to build, sign A - fails on signing Try to build...

iPhone App Harnessing Public XML Feeds

Is it legal (either in the general sense or within the App Store) to use publically available XML feeds w/o contacting the original author? For example something like http://earthquake.usgs.gov/eqcenter/catalogs/7day-M2.5.xml (Not really what I'm using for my app but same type thing) ...

Scaling and cropping huge image on the iPhone

Hi All, For the last few weeks I've been tearing my hair out trying to get a tiling mechanism working on an iPhone. I need to scale and crop images of about 150mb so that they can be saved as tiles that will be requested by a scroll view, allowing the user to see the image in high resolution. The problem is that these images are really...

UISearchBar with Controller in a normal UIView?

What I want: A UIView with a UISearchBar at the top. Starting to edit the searchBar dims the current view and shows search results from another [UITableView]Controller. What I've tried: In Interface Builder: add a "Search Bar and Search Display Controller" to the UIView. add a placeholder object for my UITableViewController add a UI...

Edit UITableViewCells while being dragged around

I've got a custom UITableViewCell subview that has a button on it which has a background color representing a priority. The user is allowed to drag the cells around in the table, which changes the priority of the object represented by that row. I want to update the color of the button when they're done, so I've implemented this: - (vo...

How do I use a mask to punch out my image?

I have a mask (loaded from a 256 grey PNG) that I want to apply to an image that's being used as part of my process for drawing a UITableViewCell's imageView.image property. When the cell isn't selected/highlighted, I CGImageCreateWithMask with a square of the proper color and the mask, then drawAtPoint: it into the image I'm building. ...

UITableView section with maximum number of rows

I'm implementing a UITableView where the number of rows for a given section is limited to 4. For that matter, if the number of rows is less than 4, I add a row that is used as a placeholder for the next item to add (this is similar to the "Contacts" app). I have a problem when I reach the maximum number of rows for the section. If I t...

Landscape only iPhone app with multiple nibs

I'm developing an iPhone application that has several nibs, and should be landscape only. The application is set to start in landscape mode via its Info.plist file. I have two view controllers: FirstViewController and SecondViewController. For each of these I have a nib file, where the view is in landscape. Both view controllers are a...