iphone

using quartz to draw temperature map

Hello, I'm developing an iPhone app where I have a route that I display on a map. The route is made up of a bunch of waypoints and for each waypoint I have the (air) temperature at that spot. I would like to color the route according to the temperature values. Now I was wondering if I could somehow map my temperature scale, ranging from...

Issue with view controllers - Prior controller (images/content) is still present (Its not *gone*/dealloc'd/released)

So, I started typically by init the controller from the nib and popping it onto the view stack. But the problem is that the first controller isn't really gone - its still around. So, we started down the path of this: Starting w/the appDelegate and loading the RootViewController: mRootController = [[RootViewController alloc] initWith...

What is the best way to use a radio button in an iPhone web app?

I'm creating a web application that is optimized for the iPhone (but also should work on all mobile devices). I have a form field that includes one standard text input and then need a radio button group with two options (Inbound/Outbound). The radio button makes the most sense logically since one option should be selected by default and ...

iPhone flipside view

Stupid question of the day: where can I find info in the docs about creating flipside views??? Thanks ...

Parsing dirty HTML on iPhone

Hi! I already searched a long time for a good solution, but I can't find anything that fits my needs... I want to parse an HTML file and display its content in a table. Everything is almost like writing yet another RSS feed reader. Doing that by parsing valid XML files is simple and straight forward using NSXMLParser or TouchXML or lib...

how to sort an NSArray using compare:options

I have an NSArray containing numbers as NSString objects. ie. [array addObject:[NSString stringWithFormat:@"%d", 100]]; How do I sort the array numerically? Can I use compare:options and specify NSNumericSearch as NSStringCompareOptions? Please give me an example/sample code. ...

Code to generate random strings creates same succession of identical strings

I have the following method that should create a 20 character ID (sometimes with a prefix) and return the ID. It seems to reset on launch and every time I use it it will create the same succession of identical numbers. +(NSString *)createUniqueIdentifier:(NSString *)withPrefix { NSString *outstring = nil; if (withPrefix!=nil &...

Finding Inverse Exponential of Number Using C or Objective C

How would a programmer like myself learn how to find an inverse exponential of a number? on my calculator 2nd LN or e^x. It is similar in concept to the neperien function on calculator e.g. the log of 2 is about 0.3 and the inverse log or 10^x of 0.3 is 2.) Note: This is to be used within an iPhone project using iPhone SDK Note: Her...

UIWebView and local css file

I want to style a web page meant for the desktop so that it is presentable on a UIWebView on iPhone. I do not have access to the web server from which the pages originate. I would like to do this by changing the href attribute of the <link> stylesheet element programmatically. I do the following with my IBOutlet UIWebView *webView. NSS...

UITextField apply filter to display

I have some UITextFields for entering currency amounts that display a number pad. In my textFieldDidEndEditing: method I apply a currency nsnumberformatter to the textField.text and update it to display as a currency value. The problem I run into is that once I apply the currency formatter to the inputted number and update the text pro...

Missing Data for Image

Hello, I am loading an image from the internet using the following code: NSURL *URL = [NSURL URLWithString:urlToImage]; NSData *data = [NSData dataWithContentsOfURL:URL options:0 error:&err]]; self.img = [[UIImage alloc] initWithData:data]; After the above: self.img == nil, err == nil No error, or no img. I am suspecting that the d...

If it is a hack or I am doing right? ( Custom UIAlertView )

Hi all, I have asked a similar question here and got some answers, so first of all sorry for making you people bother once again. But I have an argument this time. First I will show my piece of code - (void) showTheAlert{ UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Hey!" message:@"?" delegate:self cancelButtonTitle:n...

debug iphone app data source

Hi, I'd like to debug/monitor what my iphoneapp retrieves from my website from the iphone. i.e. My iphone app retrieves some prices for products from my website http://mywebsite.com:xxxx/getPrice/items How do I see it from the iPhone itself that it is doing what it is suppose to do? THanks ...

how to convert any encoding format in to the koren language?

I have got the data form ther server.And display in the tableview.But i wan to display in koren or chiness language is it possible? ...

REALLY simple question about UIViews

I am working on an app that has several different views, two of the which are DetailViewController.h&.m and AddViewController.h&.m. Neither of these particular view have IB xib files associated with them, they just have programmatically generated UITableViews. These views essentially are the same, the only difference, is that in the AddV...

UISearchBar problem when editing the text in searchbar

Hello, I have a situation here, I have a seach bar in my view. For this search bar I enter text in Hebrew (for information Hebrew is written from right to left). When I am writing text say "abcd" then in hebrew first 'd' appears then 'c' then 'b' and so on. While entering text in search bar when delete is pressed first 'a' will be del...

Drawing currency symbol

How to draw a currency symbol in a custom label using CGContextShowTextAtPoint method in draw rect. Here the symbol is in string format. Any help!! Thanks ...

Can I use the libxml framework in an iPhone app?

I am developing an iPhone app that requires XML parsing. Can I use the LibXML framework in my app? Will Apple approve my app if I use this framework? ...

How to save data from version to version in iphone app development?

Hi, everyone. I'm new here. Now I'm having a problem for my app, a chinese-english dictionary. I'm now adding a wordbook for it, and try to save the contents of it to a plist every time users exit the app. But now I find that as my app updates, all these data will get lost because the path of the app is changed. I'm now working for a co...

Adding Core Data to existing iPhone project

I'd like to add core data to an existing iPhone project, but I still get a lot of compile errors: NSManagedObjectContext undeclared Expected specifier-qualifier-list before 'NSManagedObjectModel' ... I already added the Core Data Framework to the target (right click on my project under "Targets", "Add" - "Existing Frameworks", "CoreD...