iphone

Autorotation And resizing

Hi All.. M developing an application which starts with a login page. After loggin the user will see a tableview.Selecting a row he will be directed to a web view showing a HTML content. Till here everything went fine.Now i want to see the webview in a landscape mode.I have dismissed the login view.The project template is view based. ...

Date picker + Segmented control + some labels

Hi Guys, Here is how the page should look like: It should have the following functionality: - By clicking the period on segmented control start date gets the value of present time - the interva and end date gets the value of the present time. - By selecting one of the labels Start/End, you are able to change their date with date pi...

How do I detect a rotation on the iPhone without the device autorotating?

Anyone know how to do this? I thought this: -(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return YES; } - (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration { } - (void)willAnimateRotationToInterfaceOrientation:(UII...

Is there any way that I can add UIScrollView in another scroll view?

** I had added UIScrollView in another scroll view but its not working. I have also added UITextView in UIScrollView and vice-versa but its not working. If anybody has tried or can give some idea then pls... Thank you in advance. With Regards Gunjan Shah - iphone developer ** ...

UISwitch Action method

i have 2 tableviews in my application with 5 UISwitch in each view.For every switch there is an action.Now i decide to change the label text of switch.I was able to change the label text from ON_OFF to YES_NO . But after implementing this method in a seperate class which is a UISwitch class i am not able to call the action method for th...

How to mask a square image into an image with round corners in the iPhone SDK?

How to mask a square image into an image with round corners? ...

Removing App ID from Developer Connection

How do I remove an App ID from the developer program portal area? I mistakenly added a couple of app id's under the wrong login and would like to remove them, but I am not seeing a way to do so. Any help would be appreciated! ...

Getting visible cell from UITableView pagingEnabled.

I have a UITableView with pagingEnabled. Each cell takes up the viewing area of the table. Meaning, each cell is the same height and width as the table. I'm using custom cells that have a name property. I'd like to display the name of the current (viewable) cell in a label. This works fine for the first and last cells but anything i...

Can't move the view of UIViewController for iPhone.

I have a UIViewController subclass. I add many UILabel by using the [self.view addSubview:] method, and some labels exceed the bottom of the screen. However I can't move the view to see the labels below. Do I miss something? Thanks in advance. ...

How to make section headers in multiple languages

Hi, I have an UITableView, and in it I have different sections - words that start with letter "A" go to the section "A". Words that start with letter "B" go to section "B" and so on. Here is my code: -(void) populateTable { if (tableDataArray) { [tableDataArray removeAllObjects]; } for (int i = 0; i <= 27; i++) ...

Is there any ready-made calendar control for iPhone apps?

I am building an applicaiton for the iPhone that will display upcoming and past events. I settled for a list view, but then I realized that a calendar (just like the one displayed in the "month" view in the built-in Calendar application) would be a best match (that is, this one). However, the iPhone Human Interface Guidelines just menti...

Application could not be verified error when building app for iPhone device

OK, I've just got myself a shiny new MacBook Pro, and having been developing my iPhone app on another MacBook, I wanted to migrate my development to my new computer. I've got to the stage where I can build the app and run it on the simulator no problem, but when it comes to running the app on my iPhone, I keep getting "The application c...

Reinstalling iPhone code signing certificates after new Leopard install.

Back story: Small-time iPhone developer, even have a (tiny) app on the App Store, so I've navigated the code-signing process before. Performed the appropriate backups of my crypto certs (as outlined in the "Saving your Private Key and Transferring to other Systems" section of iPhone Developer Program Standard Program Portal User Guid...

How to create a multistage UIImageView animation?

I'm trying to do a multistage animation, so that a UIImageView (1) fades in, (2) moves, (3) slide off the screen. Only stage 1 seems to work. What am I doing wrong? Here's the code: // FIRST PART - FADE IN -(void)firstAnim { // 'sprite' is a UIImageView [sprite setAlpha:0.1f]; [UIView beginAnimations:@"anim1" context:NULL];...

iPhone Development using Visual Studio

I thought I heard something about VS2010 supporting iPhone/iPod touch development. Did I fantasize/dream it? If so, has anyone heard of any plans to support development for these platforms? ...

Should Views be created using NIB's or code in iPhone

Is there any performance, development drawbacks or advantages when designing Views using Interface Builder? ...

Is there an online sample movie to test MPMoviePlayerController?

I have the iPhone successfully trying to open a movie online. (It fails because I don't have a real URL.) Does anyone know of a working URL I could use as a baseline test to make sure my code is working? I know the iPhone is a bit picky about formats and MIME types and the server, so I want to start with a known working stream. ...

Is parentViewController always a Navigation controller? iPhone SDK bugs collection.

I've just found exactly same question but answers mostly connected to problem workaround... Is this fact (for me it looks like a bug) so obvious(or well-known) that peoples do not even try to find explanation? In case this is really well-known bug in SDK... Can somebody share his experience about most famous bugs in iPhone SDK (up to...

iPhone SDK 3.0 not detected by XCode 3.2

I have the latest XCode (3.2) running on Snow Leopard, and also have the iPhone 3.0 SDK installed. After XCode was installed, I can't create a new iPhone project with it. There are no iPhone options in the New window, nor is the OS listed anywhere in the Overview dropdown. My only option at this point seems to be downgrading to XCode 3.1...

Convert NSString to NSDictionary

Is there a way to get an NSDictionary back from the string created via its description method? Given this code: NSDictionary *dictionary = [NSDictionary dictionaryWithObjects:[NSArray arrayWithObjects:@"value 1", @"value 2", nil] forKeys:[NSArray arrayWithObjects:@"key 1", @"key 2", nil]]; NSString *dictionaryString = [dictionary descr...