iphone

Library photos as source to UIImage

How to give images in photo library and camera as source to UIImage /* On button click i want to save image */ myImage = /*What i have to give here to take camera or library images*/ UIImageWriteToSavedPhotosAlbum(myImage, self, @selector(image:didFinishSavingWithError:contextInfo:), nil); ...

Managed object context deleting then saving objects raises objc_exception_throw error

Hi, I have the following error while trying to call the save method on managedObjectContext. #0 0x939214e6 in objc_exception_throw #1 0x01ded83b in -[NSObject doesNotRecognizeSelector:] #2 0x01d84676 in ___forwarding___ #3 0x01d606c2 in __forwarding_prep_0___ #4 0x01c618b6 in -[NSFetchedResultsController(PrivateMethods) _managedOb...

Multi-column text display on iphone

What is the best way of implementing a multi-line + multi-column text display? HTML? Tables? ...

[Iphone] Is "create then release then re-create then release" better than "create then use twice then release" ?

Hey guys, Let's put you this in context ;) Suppose you have a tableview that you can refresh. Would you keep the activityAnimator in memory or re-create it every time you click on refresh ... ? I know this could sound pretty obvious, it seems pretty clear that in the first case you get to speed up your app and in the other case you ge...

What are the possible messages from appstore ?

i have used storekit framework, now what are the possible messages that would come some of them "Are you sure to purchase ### product?" "Purchased Successfully" with documentation. ...

How to migrate NSUserDefaults in new release?

I have an iPhone app that stores some settings using NSUserDefault standardUserDefaults. When I add new features to the app I need to add new default settings and so I have to migrate/upgrade the NSUserDefaults. For now I just store the version number and check this when the app is launched but it has quickly become very messy as I have ...

problem with bringsubview iphone sdk

Hi, all! In my application, I want to find out wheather an image is over another image, and if it is then I have to swap that image with other i.e. bring the below rendered image on the front. For this, I'm writing below code : CGRect rect_1=CGRectMake(rect1X, rect1Y, rectW, rectH); CGRect rect_2=CGRectMake(rect2X, rect2Y, rectW2, re...

A question about UIVIEW Tags objective-c

I have a question about tags for UIViews. Is it possible to create your own tag like myview.tag="main" or something like that? I'm asking because my views are created in code and not with a nib file. After the container view has loaded and an xml file is fully parsed I need to be able to get at the subviews and update values. After a b...

iPhone animationDidStop Identifier CAAnimation

Somehow it doesn't matter which key I provide for the addAnimation method the key will always become 'transition' and there for I can't add more the one animation. Is there a logical explanation for this? CATransition *animation = [CATransition animation]; animation.delegate = self; animation.duration = 2.0; anima...

How would I make an app that would smudge selected pixels of a UIImage/UIImageView

I have a UIImageView that I want to manipulate within the touchesMoved method that smudges pixels around the UITouch passed in the set. I want it to act like the smudge tool in Photoshop and be fast. (I do know that even the hotoshop one is a little laggy but I want it to be as fast as possible) I have almost no knowledge of CGContext or...

How to prevent UITableView from reserving space at the left of cell when editing is turned on ?

I'm set editing mode for UITableView to have a possibility of cell reordering. UITableViewCellEditingStyleNone is returned by editingStyleForRowAtIndexPath: method for every cell, but it reserve some area on the left of cell. Is it possible to prevent such an area reserving, because I'm not need an insert or delete icon on left? In short...

512 bits integer on iPhone ?

Hello, I would like to know how to create 512 bits integer and is there a lib for that ? Thanks Thierry ...

How to play a downloaded mp3 file?

I have downloaded a mp3 file from a server successfully, but the problem I encountered is, I don't know how to play that file.. Should I use AVAudioPlayer or AudioQueue to play the file?? I will be appreciate if you could post some sample code here. Thanks a lot. ...

How to implement activitity indicator for maps on clicking the alert view?

I am new to iphone development.I am creating a map application.I want to display the activity indicator rotating when i click ok for the alert view "Do you want to load the current location". Since this alert is given default by ipod how can i give activity indicator for it? Please help me out.Please guide me.Thanks. ...

Reused UIWebView showing previous loaded content for a brief second on iPhone

In one of my apps I reuse a webview. Each time the user enters a certain view on reload cached data to the webview using the method - (void)loadData:(NSData *)data MIMEType:(NSString *)MIMEType textEncodingName:(NSString *)encodingName baseURL:(NSURL *)baseURL and I wait for the callback call - (void) webViewDidFinishLoad:(UIWebView *)we...

making toolbar hidden

I have class A which has toolbar(created progmatically) & with property(nonatomic,retain) .In another class B i want to make toolbar of class A hidden. How to do that ? i am using ClassA *aobj=[[classA alloc] init]; [aobj.toolbar sethidden:yes]; but it isn't working? please give me solution. ...

How to draw border around a UILabel?

Is there a way for UILabel to draw a border around itself? This is useful for me to debug the text placement and to see the placement and how big the label actually is. ...

Iphone: Youtube thumbs refresh on scrolling

I'm working on my first iPhone app, and everything is going pretty good, however I got a problem that I can't solve. I created an rss reader that retrieves a title and a youtube link. I placed the youtube link in a UIwebview and the title next to that. But when I scroll through the list the youtube thumbs that are created keep reloadin...

FBConnect on iPhone. question about the profile image

Hi, Im developoing an app for the iPhone where users can chat using their facebook account info. in this case: the facebook username & profile image. my question is How can I share the users profile picture in the chat box so that people can see each others avatars? the pictures must be online somewhere? how to get to that url? I sho...

Creating XML data structure on iPhone

Is it correct, that there is no official API by Apple to create a well formed XML? I searched the web for a while but I just found some external frameworks to create XML data structures. I need it for a web service call and would prefer a native API by Apple. Of course I could just put together some Strings, but I think that's not the ...