iphone

How about Three20 insert to Project

Hey, everybody.I'm beginning. I used Xcode + Interface Build to set up a Project on the bases of Tab bar. And now I want to draw support from three20 to realize Tab bar's view, that is to say, when click "item", the view from three20 will display. So I want to know how to insert "Three20 Project" to Tab bar Project? ...

iphone view animation problem

I'm using following code to animate a view. It basically rotates the view by 225 degrees angle. [viewToOpen.layer removeAllAnimations]; viewToOpen.hidden = NO; viewToOpen.userInteractionEnabled = NO; if (viewToOpen.layer.anchorPoint.x != 0.0f) { viewToOpen.layer.anchorPoint = CGPointMake(0.0f, 0.5f); viewToOpen.center = CGP...

Networking Tasks Delay Interface

I have an application that requires loading data from a network for a UITableView from the Internet. However, this delays the loading of the view controller. Any ideas? ...

Programming Games for iPhone

Is it best to program a game for the iPhone in Objective C or in C++. What language would a game like Flight Control be written in? What format should graphics be in to show properly and load quickly on the iPhone? ...

Save string to the NSUserDefaults?

How to save a string into the NSUserDefaults? ...

Help adding a CSR in iPhone Portal

Hi. I am new to the iPhone. Following the instructions on the Apple website: After creating a CSR, log in to the iPhone Provisioning Portal and navigate to ‘Certificates’ > ‘Development’ and click ‘Add Certificate’. Click the ‘Choose file’ button, select your CSR and click ‘Submit’. If the Key Size was not set to 2048 bits during the...

How can I detect if a viewController is no longer in the moreNavigationController?

I have a UITabBarController that has extra views in the moreNavigationController. I would like to be able to detect when the user has clicked Edit, and moves a view outside of moreNavigationController onto the regular UITabBarController items. How can I accomplish this? ...

Who should I go about managing two table views in a single scrollview?

Hi, I'm using two different tableviews in a single view, with each holding different information. The reason I'm using two tables is because I want one grouped table and one normal table. Currently, Im using the main viewController as a delegate for the grouped tableview and a separate class that is instantiated inside the main viewContr...

How to capture the contents of a UIView and change it into a UIImage?

Hello, I currently have a view and I would like to change it into a UIImage. I would like to do this because the UIImage class is much better for what I need to do. How would you capture the contents of a UIView and copy the contents into a UIImage? Thanks, -David ...

Front camera of iphone 4.0

Hello, I am new in iphone application development.Please tell me how i check through our application front camera are open or not,i have no iphone with os 4.0. is any idea to check this. Thanks ...

How can i perform 360 Degree Rotation of Image or any Object?

I want to perform 360 Degree Rotation of any object or any place i have Latitude and Longitude so if any idea about it or any sample code or any procedure please help me in performing this task. ...

Is it correct that a NIB can't be used by many different classes?

Example: Can I make a NIB which represents an view hierarchy, and use this NIB with multiple different UIViewController subclasses? Because: The File's Owner seems to be set hard to a specific class. What's the point of that? Is the Nib Loading System looking through all xib files and figuring out from them which Class wants which xib? ...

Application crashing due to Nested NSTimer and view switch.

here is the code -(void)manageAnimation:(Properties *)prop { //if(bounceTimer.isValid) // [bounceTimer invalidate]; bounceTimer = [NSTimer scheduledTimerWithTimeInterval:.05 target:self selector:@selector(animate) userInfo:nil repeats:YES]; } -(void)animate{ static float t = 0; float d = .5; static float fV...

Scroll UITableView row to top, even when table contains only a few rows

I have a UITableView which sometimes has only a few rows. I would like a specific row, e.g. the 2nd out of 3, to appear at the top of the table. However, when the number of rows do not fill the entire table, calling the following has no effect: [TableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:indexOfTopItem inSection:0] at...

How to make the keyboard go away?

I added a text field, and when I tap in there, the keyboard slides up. What are the steps needed that the keyboard shows an "OK" which actually really works? I mean...hitting "OK" or "Return" does exactly nothing. Is there some sort of KeyboardDelegateProtocol where I must do some weird stuff like -(BOOL)shouldReallyGoAway { retur...

How to be notified when a UIView detached from its superView?

It seems that the UIView has not methods like "didRemoveFromSuperview" or "willRemoveFromSuperview".Then,How to listen to the event when a UIView removed from its superView?I should use KVO? thanks in advance! ...

CT error 2:-308 on Xcode's debugger console

Hello. I'm developing an iPhone application that uses compass and GPS. I've had an interference with compass, and I see on debugger console the following error: CT error 2:-308 I don't understand the error. Any advice? ...

add searchbar in UItoolbar

hi i want to know is this possible to add a searchbar in UItoolbar ...

i should able to launch url when button pressed with using ib

i think there may be option like launch url in ib can anybody answer it if u know,,,,, ...

how to fix camera in a frame

hi all, Please tell me anyone how i fix the camera in a view.I want to open simply camera,not take photos. is there any solution for that. ...