I'm trying to find the local ip address using gethostname/gethostbyname but I always get "Unable to Resolve" when doing it.
Why could it be failing?
Are there other way to get the local ip address in the iphone?
Thx a lot
...
Hi There,
My application needs to be able to read cookies stored by a page loaded in the UIWebView. I need to be able to read the cookies using xcode so that I can store some values in application settings.
Does anyone know if its possible to read cookies using xcode?
Your help is much appreciated.
Stuck on this for ages.
Tony
...
I have an iPhone app with an embedded UIWebview (Safari) control. I'd like to be able to store the images from certain webpages locally.
Can I programmatically access the path where UIWebview downloads images? Or do I need to parse the HTML and then go find the image resource out on the net and download it again?
...
It's meant to return an OSType, but instead I'm just getting -50. Does anyone have any idea what error this represents? I can't find it anywhere.
A code snippet for context (the error is so ambiguous I don't know what snippet to paste, here's pretty much everything):
ExtAudioFileRef cafFile;
AudioStreamBasicDescription cafDesc;
cafDes...
Hi
I have some 50 custom cells in my UITableView. I want to display an image and a label in the cells where I get the images from URLs.
I want to do a lazy load of images so the UI does not freeze up while the images are being loaded. I tried getting the images in separate threads but I have to load each image every time a cell becomes...
I have unit tests set up for my iPhone project built using the Google Toolkit for Mac framework on top of OCUnit. I have a dependent project called "Unit Tests" that builds and runs the tests as needed.
But then it all stopped working, for no reason that I can fathom. Suddenly, my "Unit Tests" executable launches and just sits there, wa...
Hi there,
I'm trying to read cookies using an xcode application im writing for iphone and testing on emulator. However when I run the code below the value stored in mumcookies is 0. Cookies are allowed via iphone settings and I also used mobile safari to navigate to gmail, hotmail and other cookie setting sites to increase cookie count o...
I have a uitextview that is editable but there are certain characters I would like to be disallowed from being typed.
How can I do that?
...
Since there is no pre-existing component for creating a combobox (or select box) as seen on webpages through Safari, can someone provide an example or pre-existing 3rd party component of creating one?
...
I have an UIImage view that responds to touch events. I want to cancel the touch sequence if the touch goes outside of certain bounds. How can I do that?
I know that I can inspect the coordinates of the touch object, what I don't know is how to cancel the sequence. I don't see any event in the API that allows for that.
...
I have a sign-up form in my application with several UITextFields. In order to speed up the process I would like to add a next and previous button to a toolbar pinned above the keyboard and allow the user to "tab" between the fields using these buttons.
I know I can navigate through the subviews collection on my view, but I was wonderi...
I don't have a Mac, but I have an iPhone. I want to develop applications for iPhone.
After some research I think I need just the headers and library from the free SDK, and a GCC build that supports ARM/Mach-O.
Apple released the code for GCC used in the iPhone SDK (they had to), So I think if I could build it on Windows or Linux, I can u...
I'm displaying a UISearchBar at the top of a UIWebView for entering information that I use to display content in the UIWebView. Is there a way to attach the UISearchBar (or perhaps a UITextField?) to the UIWebView "header" so that when the user scrolls down on the webview the UISearchBar also scrolls out of view and the full window is a...
Including under which circumstances applications are rejected, and how much of a percentage Apple takes (widely distributed as 30%, though I can find no mention of it on their site).
Thanks!
...
I want to enable NSZombies for my iPhone app.
I have read several articles online and I am still unsure of the exact procedure.
I know I have to set the Environment Variables, which I have done:
NSZombieEnabled = YES
NSDebugEnabled = YES
NSDeallocateZombies = NO
I think (I'm not sure), I have to import NSDebug.h.
When I check the head...
I am getting a EXC_BAD_ACCESS (SIGBUS) on this line in my iPhone project:
if (timeoutTimer) [timeoutTimer invalidate];
The thing that has me stumped is that I don't understand how that line could crash, since the if statement is meant to be checking for nil. Am I misunderstanding the way Objective-C works, or do line numbers in crash ...
I am trying to develop an app with a UIPicker in landscape mode, taking up (almost) the entire width of the screen (with 5 or 6 components). Can you please tell me how to set the size of UIPicker. Thank you very much for your help.
...
Can I go around Apple and offer applications to users, or do they force you to go through them? How? Just legally?
...
I really want to get started, but man are those Macs expensive...especially for a non-US like me.
I'm thinking about trying to run OS X in VMWare. But would this prohibit me from doing iPhone development? I will gladly buy a copy of OS X to give Apple their due...
Thanks,
Makil
...
Problem 1:
Has anyone worked with TouchXML, I am facing problem parcing rssfeed that has characters like & or even &
The parser takes the url as input and doesn’t seem to parse the XML content. NSXMLParser has no such problem for the same feed URL.
Problem 2:
Another problem with NSXMLParse is when the foundCharacter() method finds “\n”
...