iphone

Changing the size of UISearchBar

Hi. Not being able to find the answer, and also not being able to do what I want with CGSize searchBarSize = self.searchDisplayController.searchBar.frame.size; searchBarSize.width = ; I ask: is there a way to change the width of a UISearchBar? Tanks a lot. ...

How to clear UIWebView cache?

I need UIWebView to display some local .webarchive file. But images there have same names, so UIWebView shows only one image all the time. How can I clear the cache? Thanks in advance ...

JQTouch Pressure Sensitivity

I noticed an interesting bug with the JQTouch platform and wanted to know if anyone else has run into it our has a workaround for it. If I have a link with an onclick event and lightly tap the link on the iPhone, the link works, but the click event is not fired. If I tap the same link harder, the event fires. Any thoughts on this? ...

Best Cross Platform Networking Framework For iPhone Dev

I am looking to write a client/server application that will run on both iPhone, OS X and Windows. What are the best solutions for networking that will work on all 3 platforms? I have looked into Qt and it doesn't look like it has support for iPhone. I have also looked at boost, and that looks like it can be compiled for the iPhone. Howe...

Set UITextField Maximum Length

Hello, Is there any way to set the maximum length on a UITextField? Something like the MAXLENGTH attribute in HTML input fields. ...

App crashed on app store, not in local version

I ran into a horrifying bug when my app went live. It crashes in a spot where it had been fine. 1) download from app store using complimentary review code 2) start app 3) press start button 4) CRASH NOTE: crash reoccurs at every app startup until phone is rebooted - then it disappears When I try to replicate without the app store 1) st...

How good is Mono Touch in comparison to the IPhone SDK?

Hi, I'm new to IPhone development and have to decide on a suitable tool to develop my application in. Since I am know C# / .NET, but not objective C, Mono Touch seems appealing to me. But is it is worth spending the extra $400? If have tried both, I'd be interested in your opinion. Thanks, Adrian ...

IPhone geo tagging data (SQLite or CoreData)

Hi. I'm about to build an app that has a database of places that has a location (lon/lat) and i'm about to build the dataModel. Actualy the app is very simple and all i want is to be able to fetch all places around the user (say in a radius of 30miles). Is it better to user SQLite (is there any geo-spatial extension out there)? I'll ha...

NSMutableArray: count is a method or a property?

I want to verify if I'm in the last cell of the UITable. Should I use a NSInteger property in my controller and store the value of the count of the data (it's an NSMutableArray) that populates the table? I'm asking because I don't know if count iterates over all objects of the array to count or if it only gets me a value of a count prop...

Some approaches to distribute an iPhone application to run in a specific location

My boss wants to distribute the application for a specific client, whose number of employees is around 500. The application uses webservices and the UDID of the device to restrict the other users from accessing the software. We are not a big company that can register for the enterprise program, and especially my boss does not want other ...

How do you do a page curl animation without using the iPhone's built-in curlUp and curlDown animations?

I would like to animate a page flipping, like is shown here, but without using the built-in UIViewAnimationTransitionCurlUp and UIViewAnimationTransitionCurlDown animations. Is that possible? ...

XML Parsing: how to ignore whitespace or enter/return space

hi guys, i have an online xml file filled with items. At startup i check my internet connection, if so, i parse the xml and compare the item objects to those in my sqlite database. One of the item values is 'lastupdated', whichs is a php generated string. if the lastupdated value from the xml item is different from the value of the on...

change title of viewcontroller which is on UItabbarcontroller

i have a UItabbacController with 6 tabs. My "More" tab contains 2 UIviewcontrollers. How to change title of one UIViewcontrolleller which will be showing in Morenavigationcontroller. Initially that view controller title is "registration". But after logged in i have to change to "profile". Please help me ..thanks Edit I have only on...

Core data, sorting one-to-many child objects

So if I have a store of parents children and the parent has a one to many relationship to children (parent.children) and they all have first names. Now, on the initial fetch for parents I can specify a sort descriptor to get them back in order of first name but how can I request the children in order? If I do a [parent.children allObje...

How to test an iPhone application update?

I already have an iPhone application (version 1.0) available in the App Store and am ready to submit a newer version (version 1.1). How do I test the new upgrade to make sure that the current sqlite database and property list files on the earlier version do not get deleted/overwritten etc? The new version assumes the old data in both t...

CADisplayLink stops updating when UIScrollView scrolled

Title is quite self explanatory, but I have some animation being done in a loop triggered by CADisplayLink. However, as soon as I scroll a UIScrollView I have added to my view hierarchy, the animation stops immediately, only to return again when scrolling has completely stopped and come to a standstill.... Anyway to cancel this behaviou...

Syncing data from iphone to the server Datetime question

Hey Guys, I want sync data from iphone to the webs server. My question is how can I know which data is new? the only way I see this is by making a datafield for each record on the server and the iPhone, but how about if the Iphone user is in a different timezone or his datetime is different from the server datetime. ...

How can I add 2 UITableView on 1 nib/UIView but using 2 different UITableViewController to handle ?

How can I add 2 UITableView on 1 nib/UIView but using 2 different UITableViewController to handle ? Thanks for helping! Updated: I understand the basic idea, but I just can't get it working together. Maybe it is a simple question, but for someone doesn't know, it is obviously a difficult one. Anyone can help trouble shooting a l...

Control, find and connect wifi hotspots using iPhone SDK?

How can I control the Wifi hardware on my iPhone from within an application such as WifiTrak is doing it? Is that app using private APIs maybe? ...

Three20 - SIGABRT on setting TTTableLongTextItem to TTStyledText

My code is as follows TTTableLongTextItem *descItem = [[TTTableLongTextItem alloc] autorelease]; TTStyledText *styledDesc = [[TTStyledText alloc] autorelease]; styledDesc = [TTStyledText textWithURLs:@"howdy http://www.google.com"]; //this line causes the SIGABRT: descItem.text = styledDesc; //I also get a warning on this line that say...