iphone

NSStrings, C strings, pathnames and encodings in iPhone

I am using libxml2 in my iPhone app. I have an NSString that holds the pathname to an XML file. The pathname may include non-ASCII characters. I want to get a C string representation of the NSString for to pass to xmlReadFile(). It appears that cStringUsingEncoding gives me the representation I seek. I am not clear on which encoding to u...

Can 2 different type of devices or 2 different apps talk to each other via Peer-to-Peer Connectivity in GameKit

For example 2 iPhones are running 2 different apps. 1 iPad and 1 iPhone are running the same app. 1 iPad and 1 iPhone are running 2 different app. Does it has to be same devices running same apps? I've never tried this. Hope someone can tell me. ...

what are the animation formats supported by iphone?

i have an flash based animation.but since iphone doesnt support flash.which format can i convert it to other than gif? (gif doesnt support audio) ...

delete in tableView..

I just add this methods in .h file : - (IBAction)EditTable:(id)sender; - (IBAction)DeleteButtonAction:(id)sender; and in .m file : (IBAction)DeleteButtonAction:(id)sender{ [tableList removeLastObject]; [Table reloadData]; } (IBAction) EditTable:(id)sender{ if(self.editing) { [super setEditing:NO animated:NO]; [Table setEditing:N...

how to retrieve image locally from application and display it on UIImageView with objective-c

I have loaded the image in application's folder that is source but i could not find the code by which i will display that image on UIImageView using button click event.Please help me out for this. I have used this following code before UIImage *img = [UIImage imageNamed:@"xyz.png"] but i could not set the UIImageView image to img in th...

iPhone weather forecast application

I am working with an iphone application in xcode that uses the google weather api. But when i connects to the api then its giving me the following output 2010-04-28 12:19:56.903 weather[176:20b] urlstring: http://www.google.com/ig/api?weather=Kolkata 2010-04-28 12:19:57.214 weather[176:20b] Receiving data... 2010-04-28 12:19:57.215 weat...

Is it possible to remove the black line which separates the rows in a tablecell?

How can I do this? I want the cells appear like just a collection of items with no separations in the form of lines? And also how can I make the contentView of a cell go transparent? ...

iPhone - UIView Animation not looping correctly

Hey all, got a little problem here and can't figure out what I am doing wrong. I am trying to animate a UIView up and down repeatedly. When I start it, it goes down correctly and then back up but then immediately shoots to the "final" position of the animation. Code is as follows: UIImageView *guide = [[UIImageView alloc] initWithImage:...

iPhone SDK Nested For Loop performance

Hi All, I have a NSArray of string id and a NSDictionary of NSDictionary objects. I am currently looping through the string id array to match the id value in the NSDictionary. There are around 200 NSDictionary objects and only 5 or so string ID. My current code is such: for (NSString *Str in aArr) { for (NSDictionary *a in ap...

I getting exception, while deleting a row using " commitEditingStyle " method in iPhone simulator.

Hi, I am getting exception by deleting a row from the table view. - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { if(isEdit == YES) { if([editObject.contactList count]>0) { return [editObject.contactList count]+1; } else { return 1; } ...

Microphone audio streaming from Cocoa mac app to iPhone

Hi devs, I'm trying to build a microphone audio streamer to iPhone. The server software will be a mac desktop app and the client will be iPhone, and they are connected via tcp port. I've successfully connected the mac app and iPhone, and tried to send a fixed test.m4a audio file first. But at the iPhone i grabbed the data well, when t...

I want other video viewer library

I want other video viewer library.. MPMoviePlayerController is no have function(video layer width size setting). what's name 3rd party video viewer library?? "MPMoviePlayerController take the entire screen. The only option for is to use a 3rd party video viewer library." ...

how to change color of labels,programmatically?

HI all, hope u guys r rocking i just need to know how to change color of labels,programmatically? thanks n regards shishir ...

iphone rescales website according to height?

building a simple mobile site for a client. working ok but when you open the menu or the info window the screen rescales everything to the height of the content. but i'd like it to stay the same and just make the user scroll down the text. http://www.moxonarchitects.com/mbl/ any help appreciated! meta tag im using is; <meta name="v...

How can I delete video stored in the photo library ?

I have saved video in to the photo library. -(void)exportVideo:(id)sender { NSString *path = [DOCUMENTS_FOLDER stringByAppendingString:@"/air.mp4"]; NSLog(@"Path:%@", path); NSLog(@"Export Button CLicked"); UISaveVideoAtPathToSavedPhotosAlbum(path, self, @selector(video:didFinishSavingWithError: contextInfo:), nil); }...

Add UITextField on UIView programmatically

Hello, How to programmatically add UITextField on UIView in iPhone programming? UITextField* text; UIView* view = [[UIView alloc]init]; [view addSubview:??????]; Thanks in Advance ...

iPhone Google Maps KML Search

I'm using Google maps with KML Query. But my query string is "Japanese" string "マクドナルド" I'm using http://maps.google.co.jp. When requesting data, I'm getting "0" bytes. But the same query when I put in browser, its download a KML file. My code is as follows: query = [NSString stringWithFormat:@"http://maps.google.co.jp/maps?&amp;near=%f...

UITableView Search

Hi all, I'm using the following code for my search on my table: - (void)filterContentForSearchText:(NSString*)searchText scope:(NSString*)scope { [searchParent removeAllObjects]; for(NSString *a in parent) { NSComparisonResult result = [a compare:searchText options:(NSCaseInsensitiveSearch) range:NSMakeRange(0, [search...

Prevent from making screen captures of an iPhone application

The customer I'm making an app for would like to prevent the user from capturing some of his pictures. I don't think this could be done but better making sure... ...

iPhone - Detect the end of the animation

Hi everyone, How can I detect the end of the animation of a modal view (when I do a dismiss)? (I'm talking about MFMailComposeViewController which is not created by myself...) Thanks ...