iphone-sdk-3.0

HOW TO: Layout images in a view that mimics the layout of application icons on the iPhone?

The iPhone shows applications icons, with the application name below ea. icon, on the screen 4 across and 4 down. What is the best way to replicate this type of view in a custom iPhone application? For example, I'd like to show a grid of players in a game I'm developing in a UIScrollView that shows a thumbnail of each player and their ...

change image of uibutton with other image.

This way i have created my custom button and set the image.I have set the image for nonselectedImage and selectedImage above in load view.When the view is loaded the nonselected image is visible. When i press the button the event is called but it is not able to change the image set in the action method. starImageBtn5 = [[UIButton button...

how push notification works and what is the requirements of it?

i want to know how do i enable my application to use push notification service.i read the guide but doesn't find it much detailed information about it.Could someone tell me an easy way that how it works,what are the requirements,how do i apply this in my app. one thing i would like to know that according to guide the connection between p...

getting error when using mapkit in xcode?

'NSInvalidUnarchiveOperationException', reason: '*** -[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (MKMapView)' i am getting this error.am i missed something.i don't know from where to add MApkit.framework first i tried with target->getInfo and then from the bottom + sign added framework but that did not wrked....

picker view shows numbers in pickerview but not showing properly on label?

i have added a pickerview from interface builder.i am using this method to show data like this.... - (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component { if (pickerView == SpotPickerView) // don't show selection for the custom picker { // report the selection to the UI label l...

Get MP3 ID3 meta data and song duration using AudioStreamer

I'm using Matt Gallagher's AudioStreamer to play MP3s over HTTP. I need to know the duration of the song and the ID3 tags. Is it possible to implement this in the AudioStreamer, and how? ...

UIView subclass draws background despite completely empty drawRect: - why?

So, I have a custom UIView subclass which enables drawing of rounded edges. The thing draws perfectly, however the background always fills the whole bounds, despite clipping to a path first. The border also draws above the rectangular background, despite the fact that I draw the border in drawRect: before the background. So I removed the...

How to dismiss UIActionSheet automatically

Hello I have a requirement where i am showing actionSheet but in case user does not dismiss this actionsheet by selecting one of the option, i want to dismiss this automatically by program on a particular event. Any idea guys, how can i dismiss this actionsheet progratically? ...

Adding image to navigation bar

I'd like an image to take up all of a navigation bar. This is the navigation that comes with a navigation based app. It appears on the RootViewController with the accompanying UITableView. I've seen some examples of how this might work. Set navigation bar title: UIImage *image = [UIImage imageNamed:@"TableviewCellLightBlue.png"]; U...

Xcode 3.2 and iPhone OS 2.x frameworks

Hi, I am dealing with a project compiled for iPhone OS 2.0 on a previous version of Xcode. I am using Xcode 3.2 on Snow Leopard and I know how to target for 2.0. The problem is that Xcode 3.2 do not comes with iPhone 2.0 frameworks. How can I get these old frameworks and add to Xcode 3.2? I cannot simply recompile to 2.2.1, or thous...

UITableView with images not releasing resources

Hi, I have a UITableView where each cell is an image. Only one cell is visible at a time. The images are loaded on demand. The user scrolls to a cell and its image loads. Thi is my cellForRowAtIndexPath method: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *M...

Scrolling in Open GL ES

Hi, I would like to scroll an object in my iPhone Screen. I am using OpenGL ES. It is not like a background scrolling that occurs in a game. It is just like, when the user touches it and scrolls when he/she wants to. Can someone please tell me how to do it? Thanks :) ...

Works in OS 2.2.1 but not in OS 3.0: Error: type of accessor ?

Does Anyone have any idea why this code produces this errors in OS 3.0 and not OS 2.2.1? NSUInteger aCount = [serverBrowser.servers count]; error: type of accessor does not match the type of property 'servers' ServerBrowser.h is define below and serverBrowser is synthesized in .m above. #import <Foundation/Foundation.h> @class ...

UITAbleView Giving Error

(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { //NSLog(@"Array: %@",rows); return [rows count];// AT THIS LINE } Program received signal: “EXC_BAD_ACCESS” THANKS FOR THE REPLY Actually I have attached it to the WebPage By NSUrl where I have made a PHP array and I have created a NSLOG where I...

UIView Transitions Animations

Hai all, SecondView *sv=[[SecondView alloc] initWithNibName:@"SecondView" bundle:nil]; [self presentModalViewController:sv animated:YES]; i like change the default animation (pop up from bottom) to fade or UIViewAnimationCurveEaseInOut thanks in advance ...

entitlements are not valid

Recently, i have upgraded my iPhone SDK OS from version 2.2.1 to 3.0 version. After that while building my application i get an error the the provisioning profile has expired. So i created a new provisioning profile. Then i made the distribution of my application with the provisioning profile. But i get an error in iTunes while syncing...

how to create horizontal spinner+timer like this?

is it possible to create a design something like this? any help regarding this would be very helpful for me.the functionality i want is to rotate the wheel left-to-right or right to left for selecting time...yellow is selection color and red is shows the remaining time when countdown is running ...

SSL Domain Error in IPhone- https connection

Hi All, I am using CFNetwork to connect to a https webservice , whose server is a Verisign certified. I get the appropriate response from the server some times. But the rest of the time I am getting two kind of errors. 1."Operation could not be completed. (kCFStreamErrorDomainSSL error -9807.) 2."Operation could not be completed. (kC...

How to implement path animation?

I have implement game applicaation in which there is one fly.Its flying randomly in application.But io want to fly on particular curve so how to make curve animation.If u have any idea then please advise me. ...

How to display iPhone free memory ? and how to free iPhone memory?

How to display iPhone free memory in a UILabel ? and I would like to ask, how to free up memory using iPhone SDK? FYI, I'm using iPhone SDK 3.1.2 with xcode 3.2.1 (Mac OS X Snow Leopard). ...