What is the correct point at which to release a NSUrlConnection object?
In my program, I alloc a NSUrlConnection, and then initWithRequest to kick off asynchronously.
I am now responsible for releasing the object - when do I/can I release? Immediately if I'm not using it again?
...
I installed HelloJava from Cydia, made a copy as "Hello", renamed the executable, and changed the appropriate elements in Info.plist. When I reload SpringBoard, my app is not recognized. What does it take for SpringBoard to recognize a new app? Is there some install step that I'm missing? (As an aside: Why does Apple make this so complic...
I need put information about place, where is iPhone now, to UILable in my screen. [Country][City][Street] and maybe coordinates [lat][lng]. For example in my UILable should be:
Your location is German, Berlin, Tiergarten
Can someone show me really simple code how can i get such information that put in my UILable?
...
Hello
I have a requirement where i am showing actionSheet but in case user does not dismiss this actionsheet by selecting one of the option, i want to dismiss this automatically by program on a particular event. Any idea guys, how can i dismiss this actionsheet progratically?
...
Can anyone point me to a tutorial or discussion that provides a clear-cut, full explanation of how to use the AVAudioRecorder method of recording audio in iPhone apps? Although I'm new to iPhone programming in general, I do have a basic understanding and yet all my attempts to use AVAudioRecorder have failed miserable. Much appreciated!
...
As of IPhone OS 3.0, MotionX GPS is able to keep recording a GPS track while in sleep mode. After you push the sleep button on top of the phone, the app continues receiving GPS coordinates and recording them. Does anyone know how they're able to do this? I'm only aware of the method to keep running audio while in sleep mode.
...
I am trying to intercept the touches moved in a UITableView. My goal is to not pass through touches moving up or down on the far right hand side of the table view but to handle them for other purposes. I can track touches moving on the x plane but not on the y plane. I have subclassed both the tableview and the tableviewcells, but no suc...
Hi,
I'd like to make sure a user uses a good version of the iphone app.
The idea I had was that whenever a user opens the native iphone application he sends a request to the server with the version number of the application. Depending on the server response, it would activate or not the application.
Does Apple demand that the applicat...
Hi Everyone:
I am wondering if there is some way to find people that are near you using data supplied by the Core Location Framework. If you can get the other person's CLLocation's description attribute, I assume there must be some way to compare this in terms of location to your location.
Thanks for any help.
...
Is there a reason, other than as may be required by object scope across different methods of the object, to use an object like this:
@interface
...
ViewMgmtAppDelegate : NSObject <UIApplicationDelegate> {
Obj *obj1;
...
}
@end
@implementation
- (void)applicationDidFinishLaunching:(UIApplication *)application {
obj1 = [Obj alloc];
[wind...
Hi,
1) Is it possible to send GPS coordinates, a name and hyperlink to a kind of Google map API so that it shows a map, some places with a name and whenever a user clicks on a place would go to a URL ?
2) If so, is it possible to attach this map as a view so that a user can make use of the navigator bar of the native application at any...
I'm attempting to build a Lunar Lander style game on the iPhone. I've got Cocos2D and I'm going to use Box2D. I'm wondering what the best way is to build the floor for the game. I need to be able to create both the visual aspect of the floor and the data for the physics engine.
Oh, did I mention I'm terrible at graphics editing?
...
I'm making a simple iPhone app whose sole function is to update a UIView forever (until it exits).
I tried this in applicationDidFinishLaunching and viewDidLoad:
while(1) {
// update view here
}
but that doesn't work- the app never finishes loading. I'm sure there's a simple solution to this, I just don't know what it its.
Al...
is there a way to have a Map/GPS app hook into the iPhones SMS reader so that it can parse the message and map to that area?
Specifically I'm thinking of a situation where I'm looking for someone's house and they text me their address. I would (from the SMS) be able to say "Map This" and that would send the text to the GPS app and get d...
Can a Cocoahead please explain why UIView and it's sub classes don't adopt the NSCopying Protocol?
I can see, philosophically, why UITouch would not be copy compliant, as it's a very temporal object. By UIView, and it's subclasses, especially UIButton, seem like they should be able to be copied.
Certainly Apple has good reasons for do...
Hi,
thank you for taking your time to read this message. I hope you are able to answer my question.
I would like to add a splash screen to an existing project similar to that of tap tap revenge 3.
it basically shows one screen for 2 seconds then another for 2 seconds and then it just shows the menu straight away.
Can anyone tell me how...
Hi Everyone:
I am wondering if there is some way to create and send VCards based upon the iPhone Address Book information from my own app. On the Mac, there is some easy function in the built in app to do this, but I have not seen something on the iPhone like this. So, is there some framework or otherwise that enables me to turn conta...
Hi,
I'm having trouble intercepting URL clicks within a UIWebView. I've read around and found the most common problem is that links have a target="_blank" attribute to open in a new window, but mine have no such attribute. URLs are of the form "/word", where word is some arbitrary word. I'm also encoding them with %20 when necessary. My...
I was trying to use a CLLocation object as a key for a dictionary... but it doesnt seem to work. Works well if I use a string. Is this not possible?
[dict setObject:tmp forKey:tmpLocation]; // objectForKey always returns null on same location
...
So I've got this code that does asynchronous DNS resolution using the ares library that I need to port to the iPhone. Getting the list of DNS servers on the desktop is straightforward,
SCDynamicStoreContext context = {0, NULL, NULL, NULL, NULL};
SCDynamicStoreRef store = SCDynamicStoreCreate(NULL,CFSTR("init_by_defaults_systemconfigurat...