I've just downloaded the Facebook iOS SDK and I noticed that in the sample code that comes with the SDK whenever it creates an instance of the Facebook class it does it like this:
_facebook = [[[[Facebook alloc] init] autorelease] retain];
where _facebook is a member variable of the calling object (i.e. not a local variable).
Can any...
Is it possible to download a file while the app is in background in iPhone 4?
...
May I use a settings bundle in xcode which is not called Settings.bundle?
If I have multiple settings bundles (for multiple build targets), must I define these additional names anywhere? My application seems to always look for one called Settings.bundle.
...
Is there some easy way to implement the gui design pattern "Dashboard", with badges on the icons, as described in http://code.google.com/events/io/2010/sessions/android-ui-design-patterns.html on the iphone?
Like in the official facebook app for iphone.
...
Hi!
I'm using this code:
UIAlertView *alert = [[UIAlertView alloc] init];
[alert setTitle:@"Select Tutorial"];
[alert setMessage:@""];
[alert setDelegate:self];
[alert addButtonWithTitle:@"Basic"];
[alert addButtonWithTitle:@"Advanced"];
alert.tag = e_VTselecttutorial;
[alert show];
[alert release];
It produces a window with two butt...
I've seen similar questions to this but not too many definitive answers...
I used to have a version of Xcode (not sure where I got it) that would only target iPhone OS 3.1.3 devices and since I like to work with the least common denominator, this was cool with me. Recently I upgraded to the latest SDK so I can test my code on OS 4 as we...
Hi,
I've recently started learning programming to make my own 3D OpenGL game on the iPhone and have made reasonably decent progress so far. I started off using the basic OpenGL example that is provided with the iPhone SDK which helped me get off to a good start. However, as I'm starting to get the hang of things, it has occurred to me t...
I know there have been a few other people asking this question, but my situation is a bit different.
I'm getting this error whenever I build my app. I've tried looking at the .plist file that is generated and there isn't a value for the MinimumOSVersion key. My app runs just fine on the iPhones we test with, but for the life of me, I c...
Disabling the 'blue dot' by setting showUserLocation = NO when dropping a pin at the user location in the center of the map. After dragging the pin to another location, I'd like to enable the blue dot again. Simply setting showUserLocation = YES again won't display the dot. Any idea what may not be correct?
...
Hey all, I got somewhat of a dense question about the mapKit for the iPhone.
I'm using the MapKit framework and what I'm trying to do is basically click a pin, reload it and then show it's callOut after it has been added again.
This is the code I'm trying to get to work..
-(void)mapView:(MKMapView *)mapView didSelectAnnotationView:(M...
i have a web view and i want to increase size of text in it when i press button ...
...
i have a webview with 2 buttons text plus and text minus.when i click on text plus, text size should be increased.how to implement this?
...
I read that there was no method to restart the iPhone (at least that will go through the app store), so I am wondering if you have any other ideas. Basically, at my desk, I receive "No Service"... When I go out to my car (in a service area), I remain in No Service without being able to make a call until I restart my iPhone. I've tried ...
Hi guys,
I want to run a method in a background thread, the first method will run another method on the same (background) thread after some seconds. I wrote this:
- (IBAction)lauch:(id)sender
{
[self performSelectorInBackground:@selector(first) withObject:nil];
}
-(void) second {
printf("second\n");
}
-(void) first {
NSAut...
i want to force reset to NSUserDefault whenever user update my app. why i need this because every update include some new information abt user. as some info (token) already present in NSUserDefault my app does not call to my web service. due to that fact i dont have new user info. and also i dont want to write if..else statement for ever...
Hello
the question is known: how to make curl transition in application with landscape mode only? by default it does not make it from bottom to top, but from left to right
Known solution is to add extra view and add animated views to it, but
I have to show regular view, then curl it up and show tabbarcontroller, so tabbar controller m...
Hi guys, any idea of the hostname that is sending the incoming push notification? The reason for this is because i have an iPad that uses a wifi connection to a network that have limited access so i would have to know the hostname to specifically allow the hostname to be able to connect and send the push notification. Im thinking that ma...
I have some code where I display a sprite for N number of seconds. This box is removed after N seconds and I'd like to call a function that I can select. For example, in 10 seconds I want to call showBoxEnded.
I looked on here and saw I can use the SEL function. I wrote:
-(void)caller:(id)sender
{
NSLog(@"Function Called!");
}...
I have use NSXMLparser to parse some XML from feeburner and onto my app. I have carefully selected the tags for the title, author, publication date and the summary and assigned them to the cell label and detail label in my UITableView.
- (void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string{
if ([currentElement isEqualTo...
Hello all,
I have been looking over StackOverflow and have not found any answers yet, if I missed a post which answers this I apologize and would be grateful for the link.
I am trying to change a string "prod.Start" into a NSDate type for comparison with today's date. The following code myDate returns "1753-01-01 00:00:00 -075258"
CO...