iphone-sdk-3.0

How it's new stuff bought in the app store integrated to my iphone app ?

I'm writing an app for iPhone and I would like to add downloadable content to get from the apple store in the future. I understand that the Store kit gives me access to the store and helps me to make the transactions, but how the downloaded content is integrated with my app ? How It's usually done ?, when someone creates for example, a...

Showing UISearchBar "X" within text field vs. adjacent Cancel button

I know I can set showsCancelButton to NO for a UISearchBar ... until you tap the search bar text field, and then the cancel button appears anyway! (At least it does for me.) Is there a way to show the "X" in a circle within the UISearchBar text field vs. having that separate Cancel button show up adjacent to it? Note that this button on...

How much a UIImageView rotated?

I have an UIImageView that is being pinched, zoomed, rotated, etc. When the user ends transforming the image he presses the DONE button and I have to figure out how much the object was scaled and rotated. All I know is the angle and scale of the object before the user started modifying it. Now I need the new angle and scale. How to do ...

Can someone post a full example usage of NSNumber?

I'm not even sure, for example, if I can use it like a normal variable. There doesn't appear to be a mutable version. And does mutable mean it's value can be changed? ...

(iphone sdk) When I use CGAffineTransform (such as CGAffineTransformMakeTranslation) does that actually "move" the frame?

Or does it just change where it's rendered? I have performed this transform and I think the object's frame's origin's y position stays the same. ...

How to prevent odd scrollbar flash?

I don't think what I am doing is all that unusual, but I'm certainly getting an unusual result. I have a normal UITableView, and when one of the cells is touched, I push a viewController onto the navigationController stack. Nothing I have not done 100 times before. This particular viewController is another UITableViewController, with o...

Is there a good iphone sdk documentation site that provides good examples / common usage?

The problem? I look up stuff in the xcode documentation and find very useful lists of objects, methods, etc... But then I still have to go somewhere else to find useful example code of how to use that object. For example, I looked up NSNumber yesterday and found all of the neat stuff it can do, but I still had no clue how to use it. ...

obtaining the rotation and size of a UIImageView based on its transformation matrices

Hi, If I have the original transform matrix of a rectangular UIImageView and this image is scaled and rotated and by the end I can read the final transform matrix of this same view, how can I calculate how much the image scaled and rotated? I suppose that somehow these matrix contain these two informations. The problem is how to extra...

UIPickerView recognice also "small" scroll changes

Hello, in UIPickerView there is this delegate UIPickerViewDelegate which catches changes in a component for the selected row. How can i recognice "smaller" changes? For example getting the current frame-values of a subview in a scroller-component (coordinates of the view) -updating very often. Is there a way to catch an animation key or ...

UIImageWriteToSavedPhotosAlbum showing memory leak with iPhone connected to Instruments

Hi, I'm using version 3.0.1 of the SDK. With the iPhone connected to Instruments I'm getting a memory leak when I call UIImageWriteToSavedPhotosAlbum. Below is my code: NSString *gnTmpStr = [NSString stringWithFormat:@"%d", count]; UIImage *ganTmpImage = [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:gnT...

notification for touches ended

Hi, I am a little newbie regarding notifications on the iPhone. What I am trying to do is this: I have an object using a class based on UIImageView. This class has its own implementations of touchbegan, touchesended, etc. Is that possible for the main program to know when the user lifted his finger from the object? In other words, is...

Why MKMapView region is different than requested?

Greetings! I'm saving map region into user defaults when my iPhone app is closing like this: MKCoordinateRegion region = mapView.region; [[NSUserDefaults standardUserDefaults] setDouble:region.center.latitude forKey:@"map.location.center.latitude"]; [[NSUserDefaults standardUserDefaults] setDouble:region.center.longitude forKey:@"map....

Unable to Build/Codesign after upgrading to Snow Leopard and iPhone SDK 3.0 Snow Leopard

I have no more hair to pull. Any help greatly appreciated! Profile set to Distribution, Device 2.2.1 Distribution, as has worked in the past. The build fails with this error: Command failed with exit code -1 The below section is highlighted in Build Results. ProcessingProductPackaging /Users/harvey/Documents/iPhone_App_Work/Listenin...

UITableView doesn't scroll when number of items is less than scrollable limit

I've a UITableView and I populate data from a service. When the number of rows is higher than what could be displayed on the screen, I'm able to scroll the table. But when it's less (say 1 or 2), I'm unable to scroll (in the sense, the bouce effect doesn't work making the UI appear odd). I think this should be fixed by some IB checkbox,...

Adding Smileys to UITextView or UITextField

Can any body guide me to add smileys to UItextField or UITextView? As v get in iChat view which is also editable u can add/remove it as v have for iChat in Desktop. Eg: Hello :) (this is smiley) Thanks Veena ...

How to tell if iPhone has been synced recently

Hi All, I'm working on an iPhone App which uses the MediaPicker to play songs from the device's iPod library. I create a playlist of songs which I save the to users preferences. Trouble is, if the user syncs their phone and removes songs which are in the stored playlist, the App crashes the next time they try to use it. So - I need a wa...

What's wrong with this code? Help please!

I have been trying to write an image on a layer using Quartz but all I see is totally empty images... this is the code CGContextRef context = UIGraphicsGetCurrentContext(); CGRect backRect = CGRectMake (0, 0, image.size.width, image.size.height); CGLayerRef backLayer = CGLayerCreateWithContext (context, image.size, NULL); CGContextRe...

In iPhone 3.0, Application crashes when trying to send an image from the camera using MessageUI

There is a part of the iPhone app that I'm developing where you can send images using the in app mail in iPhone 3.0. Selecting an image from the camera roll works perfectly, but when I try to go from the camera to the email (ie - from the UIImagePickerController to the MFMailComposeViewController), the application crashes. This is the ...

Does OS matter when compiling for iPhone?

Hi, I fairly new on iPhone development and I'm currently trying to add some static libraries to my project but I get the "Symbol(s) not found" error. I've googled the issue and tried different solutions without any luck. The libraries are compiled on a PC and not on a Mac so my questions are: Do I need to compile the code on a Mac? W...

How do I add the image orientation exif metadata information on an image saved on the camera roll?

After post-producing the pictures taken with the iphone camera and saving them to the camera roll, I see the final result is being saved without the orientation information. When the iPhone reads these pictures, it reads orientation = "0", that is "taken with the iphone button on the right", and that messes all up. How do I save the or...