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...
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...
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 ...
Stupid question of the day: where can I find info in the docs about creating flipside views??? Thanks
...
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...
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.
...
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 &...
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...
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...
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...
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...
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...
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
...
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?
...
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...
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...
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
...
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?
...
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...
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...