iphone-sdk-3.0

Background of CALayer iPhone

I want to set an own background CALayer of an layer (or fake it) to make a Flip-effekt of 2 Layers. I know there is this UIView animation called UIModalTransitionStyleFlipHorizontal/Vertical. How is this possible with CALayers/CAAnimation? Could i overlay 2 Layers and rotate the back layer? Thank you ...

Is there a way to see if the iPhone device has "Keyboard Clicks" on or off?

Can my app get the current status of the Keyboard Click setting? Or even better is there a way to turn off Keyboard Clicks while my app is running? ...

Iphone contact photo

I tried to search an answer for this but couldn't find one. My iPhone application needs to access the Photo associated with the contact in the phonebook. However, it also needs to make sure that every time application is launched, it verifies that the photo is the same. So, in essence, I am trying to access the photo used by contacts ...

how can load images from plist in to UITableView ?

I have stored the videos and the thumbnail images of the videos in Documents folder. And I have given the path in plist. In plist I took an array and I added directories to the array. And in the dictionary I stored the image path /Users/srikanth/Library/Application Support/iPhone Simulator/User/Applications/9E6E8B22-C946-4442-9209-75B...

How can get image from a path in to UITAbleViewCell ?

I have the following path in NSString *path1, /Users/srikanth/Library/Application Support/iPhone Simulator/User/Applications/9E6E8B22-C946-4442-9209-75BB0E924434/Documents/snook.jpg How can I show the image snook.jpg. I need it to show in UITableViewCell for cell.imageView.image if path1 has the path. I used the following to...

how to add a instance variable and use it in a custom UIButton

Hi, I created a custom UIButton like this @interface CustomButton : UIButton { NSString *firstLine; NSString *secondLine; } @property (nonatomic, retain) NSString *firstLine; @property (nonatomic, retain) NSString *secondLine; @end CustomButton* rightButton = [CustomButton buttonWithType:UIButtonTypeDetailDisclosure]; rightB...

OpenGL ES, UIView and Status Bar mess

I have iPhone (iPhoneOS 3.x) OpenGL ES app that: can be in landscape/portrait orientation can be with/without status bar shown I do this by changing status bar orientation and hidden state, then updating OpenGL view frame so it won't overlap status bar and setting projection matrix appropriately. OpenGL view is in portrait ori...

How do I add custom pins to the iPhone MapKit?

Hi, I'm testing out the MapKit framework on the iPhone and would really much like to switch the standard pin that displays a location to an image called "location.png". How can I modify my code to allow that? Maincontroller - (void)viewDidLoad { [super viewDidLoad]; // // Set the map center // CLLocationCoordinat...

Is it possible to change the border color of a UISearchDisplayController's search bar?

I have a UISearchBar added as my table header with the following code. searchBar = [[UISearchBar alloc] initWithFrame:self.tableView.bounds]; searchBar.tintColor = [UIColor colorWithWhite:185.0/255 alpha:1.0]; [searchBar sizeToFit]; self.tableView.tableHeaderView = searchBar; Then I set my UISearchDisplayController up as follows. sea...

iphone - making the CGAffineTransform permanent

I am banging my head on the wall here due to this problem: When I create a UIImageView this view has a certain orientation and size. Lets call this state "A". This view responds to taps. It can be dragged around the screen. At some point in the code I apply a CGAffineTransform to the view. Does not matter if the affine is a scale, a r...

Phone Links iPhone SDK - how to return to app

Is it possible to return to my app once a phone link (tel:) has been clicked, and opened using [[UIApplication sharedApplication] openURL:xyz] For example, when the user ends the call? Thanks ...

Opening Phone Links in didSelectRowAtIndexPath iPhone SDK

Is it possible to determine a row's detailTextLabel based on an indexPath in didSelectRowAtIndexPath? I want to be able to open a phone link using [[UIApplication sharedApplication] openURL:xyz] if the cell has the detail text label "phone". Is this possible? Thanks ...

grabbing layer contents in a class

I have a custom UIImageView class that creates thumbnails (UIImageView) and each thumbnail has a label. The label is created by another class. The label class creates a UIImageView and a UITextView on top of it. This is the main thumbnail class' init method: - (id)initWithFrame:(CGRect)frame { if ([super initWithFrame:frame] == ni...

example of overlay view with UIActivityIndicatorView

Hi, Does somebody have a good example of adding an overlay view (that covers the whole screen) with an activity indicator in the middle? TIA ...

duplicate the safari tab view switching functionality with the iphone sdk

I would like to duplicate the view switching functionality found in mobile safari's tab feature. I have implemented the scrollview containing the view screenshots, however, when a view is selected how would I duplicate the zoom animation and the title and toolbars appearing and vice-versa? ...

shouldStartLoadWithRequest is not called when using AJAX/XMLHttpRequest

Hi, I am trying to send method invocations from JavaScript to Objective-C and vice versa. Everything works fine for window.location triggered urls, which are catched by shouldStartLoadWithRequest. Now if I try to use an AJAX call instead, shouldStartLoadWithRequest is not called. Is there a way to do this? Mainly I do not want to be rest...

Use a UISearchBar with Search Display Controller

Here is what i would like to do: User enters a search term into the UISearchBar handleSearchForTerm: method creates a NSURLConnection to webservice to retrieve data In connectionDidFinishLoading, parse the JSON and refresh the tableView with results. I can only get the search display controller to work when i pre-populate the table v...

NSKeyedArchiver / Unarchiver

Hi, I'm using NSKeyedArchiver to persist multiple objects in my application. The persistence is working fine, but I can't find a way to delete a specific object from the file. How do I delete this object programmatically? Thanks, Teja ...

how can stop creating duplicates in camera roll while using UISaveVideoAtPathToSavedPhotosAlbum to save videos in camera roll?

I have a video in applications documents folder. I need it to be saved in camera roll. So, I used UISaveVideoAtPathToSavedPhotosAlbum method to save it in camera roll. It's working and I can see the video added to camera roll. But, the problem is every time I execute the application with same video(with same file name), it is added an...

When iPhone Application Submitted Information Changes Reflects

Hello... Fortunately our first application is in App Store now.. And in my itunesconnect account some of the fields are editable like screenshots, support url etc.. So, my question is if I update some of my screenshots or if I update the support url field when it will be reflects to itunes ? Or it will directly reflects once I update...