iphone

UITableView with Custom Cell only loads one row of data at a time

I want to build a train arrival time reference app, that lets me choose different stations and displays times from A to B, and times from B to A. So I'm using Apple's Page Control because I want to have multiple pages for each station, and each page would list all the train times. Here's my appdelegate: #import "AppDelegate.h" #import "...

Then files in my project folder used for what?

I finished one project. But others want me give them the non-Compiled code.what's that? My project folder include: Classes:of course, the source code. build: I don't understand clearly. imagesrc: I added, include the images of my project. The others are the nib file. Give me the explanation in detail,thank you so much. ...

Memory leak using (void) alloc

I have seen a similar line of code floating about in Apples code: (void)[[URLRequest alloc] initializeRequestWithValues:postBody url:verifySession httpHeader:nil delegate:self]; URLRequest is my own custom class. I didn't write this and I think the guy that did just grabbed it from Apple's example. To me this should leak and when I te...

AdMob and UINavigationControllers

I'm playing around with AdMob and I"m trying to get something going with an auto-rotating view inside a uinavigationcontroller. I have the ad at the top of the screen. Not sure if this is the right approach, but in my LoadView method I have: self.navigationController.view.frame = CGRectMake(0,48,320,432); The navbar appears below the ...

NSURLErrorBadURL error

My iphone app called Google Local Search(non javascript version) to behave some search business. Below is my code to form a url: NSString *url = [NSString stringWithFormat:@"http://ajax.googleapis.com/ajax/services/search/local?v=1.0&q=%@", keyword]; NSMutableURLRequest *request = [[[NSMutableURLRequest alloc] init] autorelease]; ...

document directory problem?

When i write Data(53MB ) to Document directory ,the data is not written when i check directly through application support path.i coded like this, - (BOOL)writeApplicationData:(NSData *)data toFile:(NSString *)fileName { NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *docume...

How to Hide the UIbarbutton on navigation bar

hi i have created a bar button which displays Done when the editing of the text view starts. what actually i need that when i press the done button then the the editable property of textview will become false and the done button hides. i am done with the first part but how to hide the bar button? please help.. ...

Navigation Stack in iPhone

Can I view the contents of the navigation stack? Will I be able to display the stack contents on the terminal, and if so, how? ...

Converting keynote presentations to images on the ipad

I'd like to be able to read keynote presentation files on the ipad, and convert them to a series of images, one per slide. Is there an easy way of doing this? I briefly took a look at the internals of a keynote presentation, and the huge xml wad looks pretty daunting. Is there a library that can do this? ...

What are subscription applications?

I heard this term recently. What are subscription applications(for a mobile platform). Does this term fall under standard usage? Are there any examples of such a mobile application? Thanks. ...

update iphone application behaviour

Hi, I developed one database related application for iPhone device(SQlite database). Now i want to update that application with more features(I want to push an update for the same application). Here i am more concerned about the user data while pushing the update so my question is if i will push an update then does the update will clea...

How to make CGFloat using double type in CGRect?

I am doing iPhone development and how to make CGRect return double value? I found there was a macro "#define CGFLOAT_IS_DOUBLE", but how can I change it? ...

What causes a UIViewController to become active?

I am sure this is an easy question, but one that has escaped me for some time now. Say I have a UIViewController, either defined as a root in an XIB or on a stack. At some point in my code I want to replace it with another view controller. Just flat out replace it. How would I do that? I have tried defining the controller and assign...

when an autoreleased object is actually released?

Hi, I am new in objective-c and I am trying to understand memory management to get it right. After reading the excellent Memory Management Programming Guide for Cocoa by apple my only concern is when actually an autoreleased object is released in an iphone/ipod application. My understanding is at the end of a run loop. But what define...

How to post images with text in facebook integration in Iphone sdk

Here Iam having a problem.Actually I implemented the facebook integration in my application and I need to post the images with text but I dont have any idea how to work on this.can anyone suggest this with a sample code so that it is very helpful for me. Anyone's help will be much appreciated. ...

iphone - presenting an alertview with the right orientation

I have to present an alertview when my app starts. My app supports both landscape modes. Despite the landscape mode the device is when the app starts the alertview always shows in portrait. I have tried to use the accelerometer to detect the interface orientation before the orientation notification and I have the correct orientation 2...

Best way to change XIB files based on rotation?

Hi, My app has so far just been a portrait-based application. However, I am adding landscape mode to a new version, but have found that my XIB files look shocking when rotated from portrait to landscape. Apparently I need to make a landscape version of each XIB and use some code to change with XIB launches based on what rotation occurs....

auth.getSession not working

hi all, i am having troubles with calling auth.getSession in my proxy. It is being called from a iPhone connect client. When the proxy URL is invocated from the iphone, FB returns a 100 invalid parameter error to the proxy. However the 2nd attempt from iPhone yields success. Both times the proxy is doing the same code, only the auth_t...

monotouch NSKeyedArchiver

Hey does anyone have any examples of using NSKeyedArchiver in monotouch? i just want to store a list of pocos w:// ...

IS there any API in facebook connect like twitpic API in twitter to post images in Iphone sdk

Hi guys, Is there any API call for facebook connect like twitpic in twitter to post the images. Actually I need to post the Images and related status with in a single post. Please guys help me to get out of this problem. Anyone's help will be much appreciated. Thank you, Monish. ...