iphone

iPhone: Calling [NSBundle mainbundle] Crashes on the Device But not Simulator

Basically the problem is exactly what the title says. My app works smoothly on the simulator, with no crashes whatsoever. In fact, the previous version is on the app store. I made minor changes here and there and suddenly it started to crash in a very odd place. I use [NSBundle mainBundle] resourcepath] in various places in the code to...

How do remove the border around a core-plot graph

I am trying to remove the border around a core plot graph on the iPhone - but seem to be struggling on what should be simple in my mind. Pointers please! ...

Parsing SO RSS feed using TouchXML, no <entry> tags found

I'm trying to parse a Stack Overflow RSS feed of a specific question: http://stackoverflow.com/feeds/question/2110875 For this I'm using the TouchXML library. There seems to be a problem in the following code: CXMLDocument *parser = [[CXMLDocument alloc] initWithData:sourceData options:0 error:nil]; NSArray *allEntries = [parser nodesF...

Viewcontroller question in iPhone SDK

Hi, I'm a iPhone App newbie. I have a viewcontroller and want to load a different viewcontroller directly after the first one is initialized. Any help would be appreaciated. :) Cheers Sebastian ...

iPhone SDK: How to implement search within a UIPicker?

I have UIPicker that I need to write search mechanism for. The data that is feeding this picker is an array of strings. When the user enters the search string (I have a UISearchBar that handles that.) I would like to find all strings containing the search term. From the example below, it seems I need to write a predicate and then filter...

Problem drawing in custom UIView class

I have a UIView subclass that has the following in drawRect: for(int j=0; j<[myArray count]; j++){ if([myArray objectAtIndex:j]!=@""){ [[UIColor colorWithRed:0.9 green:0.9 blue:0.9 alpha:1] set]; CGContextFillRect(context, CGRectMake(55+(20*j),10,15,5)); [[UIColor blackColor] set]; [[myArray objec...

Twitter OAuth for Iphone apps, twitbird

Hi All, I am wondering if anyone has an idea on how did twitbird developers use oauth for allowing the user to authorize their app ?(they say that they did use OAuth) when I was trying their app they used the username and password directly without redirection to twitter. I searched for a solutions and there is no obvious answer becaus...

Evenly aligning things in IB

I have ten labels on a view positioned vertically. I need to evenly space them. Does IB have any type of setting that will do this? ...

Starting Three20 sample project in landscape mode renders half the screen unresponsive to touch events

I am interested in developing a Three20 based application for iPhone OS that is primarily landscape oriented. I downloaded the Three20 sample project templates, loaded them in Xcode, and started the sample project app fine in the simulator and on the device using the 3.0, 3.1, 3.1.2 SDK. When I changed the Initial interface orientati...

iPhone UITextField mask

Is there built in support for input masks in UITextField? I could apply formatting after the text has been entered, but I'd like it to be there as the user is entering text. If there is no build in support, how can tis be achieved? ...

Indexing an alphabetically sorted list

I have an array with a list of objects sorted alphabetically ignoring the letters case (used a lowerCaseString method) and I need to sort it into an array of arrays one for each letter +1 for non alpha characters. A simple way of doing it would be to loop through the source array with a giant 27 stack deep if else if else if else.... Ne...

Interface Builder: XIB Refactoring

Hi, is there a way to move a UITabBarController defined in the MainWindow.XIB in a separate XIB? I would like to load the TabBarController (RootViewController of my App) asynchronously while the user is stareing at the login screen to speed up the App launch time. Currently the TabBarController is loaded with the Main-Window and 'wired'...

How to delete unused graphic files from iPhone XCode project?

In our iPhone project, it tends to add up a pile of unused image files. I would like to find a neat way to delete theese files from my xcode project. Referances to the images is found in both source and nib-files Do anyone have a solution for that? ...

iPhone--Graphing Large Amounts of Data in one UIView

I am trying to graph large amounts of data in a UIView as a subview of a UIScrollView. In order to overcome the memory limitations surrounding enormous UIViews, I plan, once the scrollview's offset has reached the maximum or minimum offset, to redraw the view with the new data either with a lesser "x" value if it has reached minimum, or...

Get correct bounds for navigationItem.titleView layoutSubviews

I have a subclass of UIView that I've added to as the titleView of a navigationItem using the following line of code: self.navigationItem.titleView = tempview; Easy enough. That works fine. My problem is that this navigationItem sometimes has the rightBarButton updated (sometimes there is no button, sometimes there is one standard siz...

Very odd iPhone - Server problem.

Essentially I'm sending data to a Java Socket Server from an iPhone app however something rather strange happens, it doesn't receive the data until the iPhone application is closed! I'm sure there is something I'm missing but I just can't seem to find it, it's all quite odd. Here is how my connection is created: -(CFSocketRef)initSocke...

What is the maximum number of touch events per second I can receive?

When I drag a finger across the screen, there seems to be a limit to how quickly touchesMoved gets called. It seems that the limit is around 50/second. What controls this limit, and is it possible to change this? I'm guessing this is controlled at a very low level and I'm stuck with it, but perhaps not. I'd love to be able to have a hi...

iPhone OS 3.1.3 does not work with Xcode 3.2.1. Do I have to install SDK 3.2 BETA?

Same as the title. Do I have to install SDK 3.2 BETA to work with OS 3.1.3? I really want to avoid to install BETA on my main workstation. No other way? I'm also thinking about rollback to OS 3.1.2 if there is no way. I'm regretting about I made no backup. ...

Activate a VPN on iPhone programmatically

Hi all, is there a way to activate an existing VPN on the iPhone from a native program? The VPN connection is configured in Settings, but requires a password; both flashing a system password prompt and providing a password parameter (from my own UI) would be fine. Thanks in advance. ...

If I have iPhone SDK 3.2 is there any way I can use 3.1.3

The current 3.2 SDK doesn't seem to contain 3.1.3 - how do I get it to work? ...