iphone

UIKeyboardFrameBeginUserInfoKey & UIKeyboardFrameEndUserInfoKey

In the Managing the Keyboard documentation: UIKeyboardFrameBeginUserInfoKey The key for an NSValue object containing a CGRect that identifies the start frame of the keyboard in screen coordinates. These coordinates do not take into account any rotation factors applied to the window’s contents as a result of interface or...

How to pass single touch events to super view in UIWebView?

Hi, I am using UIWebView to display pdf. I wanna handle touch events on webview. There are two conditions, my WebView should handle double touch events and gestures, and i wanna pass single tap/touch events to super view. Can any one please tell me how to differentiate the touch events in UIWebView and how to pass specific touch events...

How to use AutoSizing Property from xib + iPhone

I want to know how to use autosizing property in interface builder i.e. how this property can be used in autoadjustment of subview height , width and their position in superview. Thanx, Regards tek3 ...

Animating UINavigationController's 'back' button

I have a custom button on a view controller in the navigation controller's heirarchy, that when pressed, pops the visible view controller. I want to use UIView's transform property to animate the closing of the view controller. It works, but if I use `popViewControllerAnimated:YES', the default left slide of the animation is still ther...

when try to deserialize property List in to Object always getting null

this is my property list data in NSdata fotmat which i try to deserialize <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt; <plist version="1.0"> <array> <dict> <Key>Secondfactor</Key> <string>0</string> </dict> </array> </plist> NSArray *t...

Refresh/ reload the uipicker

Hii, I add the uipicker on a view. and that view i am showing on the different textbox begin editing event. and i want to fill the uipicker from the different datasources on the different textbox editing event. so i want to refresh or reload the data on uipicker view. so plz suggest. ...

register iphone application

Hi Guys Please guide summary me step by step to register iphone application in Apple store I created an iphone sample application. I want to deploy it in real device. but i dont know how to do. Thank you~ ...

Clearing rather than releasing a NSMutableString

I've got a rather large loop that gets a string, does something to it, than goes onto the next one. I was originally releasing it then reallocating it but thought that is a bit of waste of resources but can't figure out how to just clear it out to reuse it. ...

Display tabs below while showing ModalViewController + iPad

Hi all, I am developing a tab based iPad application in which I have show a 'Modal view' at some point of my application. Now when that 'Modal view' is displayed all of the tabs below are hidden as 'Modal view' covers the entire screen. Now I want to know is thre any way to show tabs at the bottom of the application while also showing '...

How to update 2D iPhone game to be compatible w/ iPhone 4's retina display?

What are the necessary steps to update an existing OpenGL ES 1.1 based 2D iPhone game to be compatible w/ the iPhone 4's retina display? I'm still using the Texture2D class that came w/ Apple's CrashLanding (download) sample code. After reading Apple's documentation, watching the WWDC video (session 134 "Optimize Your iPhone App for t...

What method is called when iPhone is locked?

I want my app to stop locating the user when the app is open, but the phone is locked, to cut down on battery usage. What delegate method is called when the user locks the phone while an app is still running and active? ...

Auto scrolling UITableView Problem

Hi , i am using below code for auto scrolling UITableview - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { return 1; } - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { return [DataArray count]; } - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPa...

how to slice two images into one image in iphone

Hi I have one app where i need to slice two or three images into one image can anybody help me in this ...

Is there an alternative method to check the network availability in iphone instead of service reachability?

I'm creating a simple iphone application and there I need to check the internet availability. To check this most the forums recommended to use the reachability class. Based on that I have implemented the following code. struct sockaddr_in zeroAddress; bzero(&zeroAddress, sizeof(zeroAddress)); zeroAddress.sin_len = sizeof(zeroAddress...

presentModalViewController crashes simulator

Hi everyone I have a very weird situation, check out the snippet below which launches a ModelViewController for an iPad application: // Load GuestDetailController GuestDetailController *detaileController = [[GuestDetailController alloc] init]; if (searching) { // some code, but nothing relevant to the issue (checked that already) } ...

IPhone SDK: detect which touch came first on a 2 touch max application

Coding inside the function -(void) ccTouchMoved:(UITouch *)touch withEvent:(UIEvent *)event receiving 2 touches in the "event" variable, how can one detect which touch has lived longer? i know i could use global variables and in the touchbegin just update these variables, but I rather do it the better way, if there is any. ...

Maximum size of UIImage tiles for iPhone 4

I have an iPhone app containing a large static image, which is sliced into 1024x1024 tiles and put in an UIScrollView. I'm not clear whether I can use larger tiles on the iPhone 4. If I want to support a double-res image for iPhone 4, should I: Create 2048x2048 tiles with a @2x suffix or Create 4 times as many 1024x1024 tiles and writ...

How to get email of a facebook friend in an iPhone app

Hi There, I am developing an iPhone application that will send email to a logged in user friends'. I am using FacebookConnect for the same. The problem is I am getting the uid of all friends but what is the way to send email to these uids(friends UID). Also I m not able to get the email id of any of the facebook friends.Can I get the e...

Random afconvert errors in custom build rule of XCode

Hi I have an iPhone project which heavily uses sound samples and Open AL. Sound samples in it's original form are aifs. For Open AL I need cafs. So to keep things simple I've decided to move conversion procedure into custom build rule of XCode project. There is a brilliant article right about this task http://www.henryflurry.com/news/fil...

can TTURLMap from three20 map to a xib-file ?

ive made an app for the iphone and wanted to make it work on an ipad too. for the navigation i used three20. all the views are viewcontrollers with xib´s. for later developement, i just wanted to make the xibs in the bigger format as new skin and let the background-programm the same, so that in the end each viewcontroller would have 2 x...