iphone

Is there a way to add images of type .jpeg , .gif and tiff... etc in iphone sdk?

Hi guys, I got one problem that how can i display the .jpeg and other type of files in iphone sdk. Is there any solution to this. please help me. Thank you, Madan Mohan. ...

changing label size and position runtime tableview

I am using customCell in UITableView my cell has diffrent UILabel in customCell I want to change the size of the labels according the text to be displayed so that no text truncates and the positions of the labels below the label which size has changed so that no label overlap each other. Thanks.. ...

§ character kills nsxmlparser

I've got an nsxmlparser. It works well enough, though I had to convert all the special characters coming into it into their coded equivalents: & had to be &, " had to be ", and so on. However, § (§) kills it at parser:didStartElement. Do you know a way around this? Naturally, I need the § characters to show up. ...

How to Change the color of the text present in table view from its default black color in an iphone application ?

How to Change the color of the text present in table view from its default black color in an iphone application ? ...

Xcode not building for iPhone after Upgrading it from 3GS to iOS 4.1 ??

i just upgraded my iPhone 3GS to iOS 4.1 and also downloaded the latest Xcode 3.2.4 and iOS sdk 4.1....i was working on an application on previous sdk iOS 4.0 but now when i build the project with new sdk xcode says No Provisioned iOS Device is connected...do i need to install a new provisioning profile for the project?? i cant figure ou...

Core Data NSFetchedResultsController Performance Advantages Over NSArray?

Does using an NSFetchedResultsController provide any performance advantages on the iPhone over an NSArray? I have between 4,000 and 8,000 records stored in core data and wanted to know if I should select one over the other. Is the NSFetchedResultsController just used to make code 'prettier'? My concern is searching, and lag on keyboa...

how to use .gif files in iphone sdk?

Hi guy's I am getting a problem in displaying the .gif file in my view.Actually I am getting the .gif files from the parser and I need to display the into my view.Can anyone suggest how to use the .gif file in our app.I am struggling a lot for this.Can we convert .gif,.tiff and .jpg files into .png with progrmming? Anyone's help will b...

How to start the mail app from titanium

How do you start the Mail app from a Titanium app? I am looking for the equivalent of an HTML mailto: link where I can specify the email and maybe the subject from with in a windowView. I am not using a webView. Will ...

What happens if the callback of CADisplayLink can't keep up with the display refresh rate?

I've implemented an CADisplayLink callback to perform an heavy animation on screen. However, it seems that sometimes a frame is dropped or just not drawn. I'm not sure. Don't have a highspeed camera at hand to record it. But maybe someone knows in depth what happens if my callback is calculating too long? Will the callback not be called...

iPhone in App purchases subscription expire problem

I implemented inApp purchases with a subscription and when the user buys it in sand box and the subscription expires after lets say 5 minutes the system says "Product already purchased. Do you want to renew it ?" when the user tries to buy it again. How can I tell the apple server that the subscription has expired ?? And that the user r...

Is it possible to sort by subclasses in an `NSFetchRequest` without adding additional attributes?

I want to group the results of a NSFetchRequest by entity. The entities all share the same abstract parent. For example: animal | |-cat | |-dog The NSFetchRequest has includesSubentities set TRUE and entity set to animal. It is possible to set sectionNameKeyPath of NSFetchedResultsController to entity.name but it is not possible to do...

Rotate the image corresponding to the touch drag in iphone

Hi i want to rotate the image in clockwise or anticlockwise corresponding to the user touch drag with its speed. i think this can be do with some math logics. any one give me the little bit code sample for this. thanks in advance ...

What happened to XCode Build and Analyze results?

This is similar to another question that wasn't really answered: http://stackoverflow.com/questions/2738363/xcode-3-2-build-analyze-never-finds-any-issues I used XCode's Build and Analyze for the first time on a large project and came up with a number of analyzer warnings. I corrected a few and wanted to verify my changes were being 'a...

how to save an image with text on another image?

Hi All, I any one have idea about taking snapshot from iphone application through coding. means. I am developing an iphone application where there will be two images dynamically comes. There will be a text view with clear color on those particular images. users will be able to write any text on the images and click save button. Then t...

Tips for optimizing performance when using tons of CALayer objects?

My app architecture / hierarchy looks like this: UIView UIView CALayer | CALayer | CALayer | CALayer .... (and a few hundred more) These CALayer instances represent small square dots in a dot matrix display for an fast countdown clock. I'm updating their backgroundColor as often per second as possible. Actually what I want is 60 times...

iOS: Get "Received memory warning" after use of image created from PDF and used as background.

The task: create an image from a PDF file as fast background preview for my PDF displayed with the CATiledLayer (slower, higher resolution). Problem: I get pretty fast an error warning on my iPad "Received memory warning. Level=1" and shortly after "Received memory warning. Level=2" .. then the app crashes. - (void) drawSinglePage:(CAL...

Twitters public timeline

Hi I am developing this app which was accessing http://api.twitter.com/1/statuses/public_timeline.json for twitters public time line. Until yesterday everything was fine but now I am getting an empty array as a response. I've tried it in the browser & response is [] ie empty json array. Twitters status says everything is okay. Ho...

EAAccessory to accept all protocol string

Hi , in the documentation of EAAccessoryManager it says we need to add "Supported external accessory protocols" in the settings plist. But this can be done for known protocol strings, what if dont know the protocol string or string which are not in the list, if my application has to detect any arbitrary device which are "made for iPod" h...

Faster, more efficient JPEG conversion and compression on the iPhone

I'm grabbing frame images from the iPhone's camera at a rate of 25fps using a resolution of 192 x 144 and a 420v, BGRA format. I'm converting the CVImageBufferRefs into UIImages and then calling UIImageJPEGRepresenation(image, compressionQuality) to get a compressed JPEG version of the image. Using the Time Profiler in Instruments, I c...

How to controll second UIView (subview) from a different UIViewController file in one XIB

Hi Guys. I am strugling on the following task. I am trying to control my subview from another viewController class. What I did and does not work is this. I inserted an object and changed it class to my second viewController class. Then I connected its UIButton outlet to a button I have on my subview. I then connected the buttons ...