iphone

CoreData Relationships Clarification: How to effectively set an inverse relationship

I have a CoreData relationship set up as follows: (sorry, I'm new to stackoverflow so I have to draw it with ascii). Story (object) Attributes: creationDate, order, Relationships: sentences (one to many with Sentence) Sentence (object) Attributes: image, order, text Relationships: belongsTo (one to one with Story) Notes: t...

Rounded UIBarButtonItems

Hi, I need to make UIBarButtonItem rounded. In xib even though the style attibute specified as bordered it displays a rectangular shape. Is there any work around to achieve this? Regards, Dilshan ...

How to avoid drawing triangles that are outside the viewport?

Hello everybody, I have a technical question for the experts in here: I am developing an OpenGL application for iPhone using openGL 1.x . When i render a big item on the device it become obviously slower and that's seem quite normal to me. But i would have expected an increase of framerate when the object is highly zoomed in as the majo...

Music volume influences sound effects volume

Hi! On one hand, I have a MPMusicPlayerController playing music, on the other, I play sound effects like this: NSString *sound_path=[[NSBundle mainBundle] pathForResource:@"snd_special_explode" ofType:@"caf"]; CFURLRef url =(CFURLRef)[NSURL fileURLWithPath:sound_path]; SystemSoundID specialExplode; AudioServicesCreateSystemSoundID(...

Adding Animation into a page on ScrollView

Hi, I have an animation (currently 30 different images repeating) and I wish to add it into a single page in a ScrollView (currently holding 7 pages). Can this be done? I've added my code below, the behaviour I'm getting is that on my selected page nothing appears, on all the other pages I get the images as normal, but there must be som...

Are there any libraries or examples of how to handle OFX on the iPhone?

I'm working on a money-handling iPhone application and would like to interact with sources using the Open Financial Exchange (OFX) standard. Information about this standard is presented here and here. Are there any open source libraries, examples, or tutorials out there about how to interact with OFX on an iPhone or in Objective-C? ...

mapkit , tagging a disclosure button with index of annotation

i have been struggling with this for a few days, i even re-wrote half the code to try it another way. i have my annotations imported from a csv, and placed onto the map with tile and subtitle, i am trying in vain to add a tag to disclosue buttons so i can see which one was tapped, but having problems, whatever values i assign to the an...

Is it possible to check if an audio existes in audo library using MPMediaItemPropertyPersistentID?

Hello every one I hope to add audio from audio library to a MPMediaItemCollection. I hope I can store the MPMediaItemCollection So I write the MPMediaItemPropertyPersistentID to an array. When I need to reload and replay the audio MPMediaItemCollection, I check if the audio's MPMediaItemPropertyPersistentID existes in current audio libr...

MPMoviePlayerViewController stops playback when unplugging headphones

Hi there, I'm currently developing a web-tv application that uses MPMoviePlayerViewController resp. MPMoviePlayer to playback streaming video content on the iphone. the issue I've got here is that once i unplug my headphones (while watching tv) the player stops. Due to the fact that I'm not showing the standard controls (previous butto...

how to get the node inside the parent node in touch xml parsing

Hi all I am parsing my xml with libxml ,my code is as follows -(void) grabRSSFeed:(NSString *)blogAddress { // Initialize the blogEntries MutableArray that we declared in the header blogEntries = [[NSMutableArray alloc] init]; // Convert the supplied URL string into a usable URL object NSURL *url = [NSURL URLWithString: blogAddr...

Moving through JSON data in iPhone app

Hi all I'm afraid I'm a newbie to objective-c programming, and I am having a problem that I have spent all day trying to figure out and I cannot, so I am humbly asking you guys if anyone can help. I am trying to read the details from a JSON page online (for instance a local services directory) and have installed the JSON library into X...

What is the standard/best way of route implementation on iPhone?

Hi, I have read about a number of posts for developers who want to plot out a route on a map on an iPhone but there is no satisfactory answer as how to best achieve this. You can use the Route-Me library, add a layer on top MKMapView or send coordinates to phones map software then you navigate from your application, which in my opinion i...

UIImageview won't update after changing the center

I am trying to create a small augmented reality application where I move an image on top of the camera capture. So the only thing I change is the center of the UIImageview: [imageView1 setCenter:CGPointMake(x-16, 240)]; and the center gets updated but the position of the image on the screen stays the same. after the center update, t...

interview questions on iphone

i am looking for a new job in iphone application development.For this iam looking for a questionaire on iphone.After a lot of search on google,it seems to me that there does not exists any openly available questionaire that will help iPhone Developers to have a better preparation. Still than if anybody knows about this, Please let me kno...

I want to Switch From a TabBar To Another TabBar....How to Do That.

Actually I am having a UITabBar Now I am pushing a instance of UIViewController on That Controller I need a Different TabBar How to Do that Can anyone Explain With Code ...

NSDateformatter give 'null' on iPhone, correct date on iPad

Could anyone explain this to me? I've seen quite a few DateFormatter issues around, and all seem to be related, but not exactly what I'm facing here. Consider the following code: NSString * CleanDate = @"20101117T020000-0000"; NSDateFormatter* dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setDateFormat:@"yyyyMMdd'T'HHm...

What can be passed in (void *)context?

I'm doing some UIView animation stuff using [UIView beginAnimations:nil context:nil]; // ... Animation configuration ... [UIView setAnimationDelegate:self]; [UIView setAnimationDidStopSelector:@selector(animationEnded:finished:context:)]; [UIView commitAnimations]; Regarding the following question: http://stackoverflow.com/questions/3...

Is it possible to prevent iphone view from receive touch events? If yes, How?

Is it possible to prevent iphone view from receive touch events? If yes, How? ...

Porting my Application from iPhone to iPad

I know there are multiple questions about this but I wish for this one to help my specifically with my application. Here is an overview on my application: I have a scrollview that holds a 7-page brochure. On one of the pages, there is an animation (a simple, cycling series of images). The images are currently 500x750 but the scrollview ...

@property for int type?

Just a quick question if I may, I have always (since learning obj-c) written int properties as follows... @property(nonatomic, assign) int myValue; I am now thinking that this might be overkill and I might as well write... @property int myValue; Just curious, I know that "assign" is the default behaviour and that "nonatomic" can be...