So I'm writing an application for my iphone that networks to my computer running a java application using a socket. But when I'm transferring data, I have to send a NSData object from my iphone, and of course the java program doesn't know how to interpret it. How can I fix this? I need to send 3 float values between the two applications....
Hi guys, having trouble with this. i need to come up with a logic code.
How do i, given 2 set of times. subtract one from the other and change it all to seconds.
Lets say i have '12:00:00' and '15:00:00'
Now i want to subtract 12:00:00 from 15:00:00 so the result will be 03:00:00. Then change it all to seconds so that will be 10800 sec...
I need to create a widget where different size of an apps icon is needed, how do I find them in different sizes? The only thing I have is the itunes app link like the following
http://itunes.apple.com/us/app/yelp/id284910350?mt=8
...
I'm getting an NSString from a dictionary that needs to have a variable integer, something like:
"You have %i objects."
How do I put the calculated integer value into the string? I would like to do something like
NSString *string = [NSString stringWithFormat:[dictionary objectForKey:@"string"]
But I don't know how to pass in an arg...
I am currently displaying text in a uiwebview. However I would like to allow a user to click on a word and register an event. Apple has one is sort of thing with iBook. When you click on a word you can choose to look up the word in a dictionary. How can I do the same thing with Web view?
I have thought about making every word a link...
I just installed itunes 9.2. Then tried doing something I've done thousands of times before: installing an add hoc build. I deleted the old version of the app and dragged the new version onto the app section of itunes. I get a message that the profile with the same name already exists (I select replace). Nothing happens- the app is not i...
i am trying to display an image from a url into my UIWebview but the image size is too small to be displayed without making it blurred by stretching it..Since i cannot auto-resize the image(as it gets blurred) i was thinking of getting and setting user-agent value for iphone...But i m not able to find much relevant info about it and i am...
Hi all,
I had a problem, when I working with the Notifications for the text fields. It is working very well when I run it in 3.1.3. But when I tried to run in the 4.0 it is not working. Please help me on this.
Thanks in Advance,
Sekhar Bethalam.
...
hay all,
I want to enter url in one view and then want to switch and display it in another view in uiwebView I am trying like this but its not working.
NSString *urlAddress = @"http://www.google.com";
//Create a URL object.
NSURL *url = [NSURL URLWithString:urlAddress];
//URL Requst Object
NSURLRequest *requestObj = [NSURLRequ...
So I'm writing an application for my iphone that networks to my computer running a java application using AsyncSocket. But when I try sending data from my iPhone to the java application, the data only prints out when I exit the iPhone application. Why does this happen and how can I fix it?
...
Since upgrading 'everything' today to deploy to OS4 devices, it no longer recognizes localized XIBs and plists. (It=neither iPhone simulator or iPhone.) As in, before OS4, switching language caused the correct localized files to be loaded, but not so now. Does something need to be 'recreated', 'nudged', or renamed? It has worked on simul...
Hello guys,
How to change link color in text View. In text view using dataDectorType property and it show link in blue color. Is it possible to change in other color ?
...
Hi, I just did a quick test with UIScreen's +screens method, to see if the TV Out would also be seen as a UIScreen. Unfortunately, +screens returns only one screen (that of the iPhone itself). So how to display stuff on the TV-Out?
Thanks.
M
...
I am attempting to create an app that can be used to search an Exchange GAL, however, I am finding the new 4.0 documentation regarding this subject confusing. Does anyone know how I might go about searching the GAL for names containing a specific string (e.g. "Smi")? My source code at the moment is all but useless as I am simply trying t...
Hi,
My application has a tab bar controller with a navigation controller in each of its tabs . The application is completely Landscape oriented. But when I try to run in iPhone OS 4, it is not changing to landscape at all. Any suggestions please?
...
Hi,
didRegisterForRemoteNotificationsWithDeviceToken delegate method gets called quickly on 3.0OS devices, so that we are able to get the devices token immediately after launching the app, but on 4.0 devices the same delegate method takes time to get called, so that we are not able to make call to the server with the device token append...
I am using the below code in my application which works perfectly in iPhoneOS 3.1.3 but not working in iOS 4.0. Any body affected by using this.
NSString *currentPhoneNumber = [[NSUserDefaults standardUserDefaults] objectForKey:@"SBFormattedPhoneNumber"];
...
Hi I have an iphone application in which I am fetching & parsing data in in applicationDidFinishLaunching. Now I want to transfer this fetched data which is in one NSMutableArray to my first view controller to display it there.
Whats the best way of doing this...
...
A description of the problem is as follows:
I have a view, say, view A. To enter certain data, I have an alert,with a text field inside it, which pops up. Once the user enters data into the text field, i have an alertView:didDismissWithButtonIndex: function as follows :
- (void)alertView:(UIAlertView *)alertView:didDismissWithButtonInd...
Hello,
I don't understand the output of NSLog for the array returned by a NSFetchRequest.
I'm reading my database and placing the contents in an array, looping through the array and then outputting the contents with NSLog. I don't quite understand the output in the log file. Code below:
-(void)createXMLFeed{
//Fetch details from ...