iphone

Invalidating session before iPhone application quits

Hello I would like to tell the server to invalidate an ongoing session when the user quits the iPhone application. In the app delegate, I send a request to the server in the (void)applicationWillTerminate:(UIApplication *)application method. I am not waiting for a server answer, I just want to send the request and quit. However I cant...

Objective-C RGB to HSB

Let's say I've got the colour FF0000, which is red. Finding a darker colour is easy, I just type maybe CC instead of the FF, but let's say I've got the colour AE83FC, which is a complicated colour, how the heck would I find a lighter or darker version of it automatically? I figured the easy way to do this is to convert my RGB to HSB [Hu...

How to implement UITableView with multiple columns and sideways scrolling.

I'm thinking about how I could achieve this kind of UITableView: http://snapplr.com/c1x5 So it has multiple (separately selectable) columns in it which also differ in width. Apart from that it can also scroll sideways to see programs which broadcast later on the day. Now, I'd like to know how you would implement this kind of feature. A ...

dynamicly loading content into scrollview while scrolling

hi there. I'm facing a problem with my scrollview (horizontal, paging enabled, can be 50 pages or more) what i want to do is, load content onto the scrollView's content-View while the user is scrolling horizontally (because initially loading all the content takes way to long). what i do is: everytime a scrollViewDidScroll happens i che...

Do somthing when animation is ready.

Hi! I have a animation in my navigationbased application. [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:1.5]; [UIView setAnimationBeginsFromCurrentState:YES]; [UIView setAnimationTransition:UIViewAnimationTransitionCurlDown forView:self.view ca...

Push notification on iphone from my server.

Hi, I am creating an application and i'm planning to use a notification service in it. I've a server and the application is calling this server via webservices and updating its data. But i now need to enable a notification service where the user may get the updates in my server as a notification. I am planning to use Urban Airship servic...

UILabel fade-in fade-out question

Hi there, I got the following code inside an NSTimer selector: [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:2.0]; [infoLbl setAlpha:0]; [UIView commitAnimations]; [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:2.0]; [infoLbl setAlpha:1]; [UIView commitAnimations]; So I want to imple...

iphone SDK download

Hi,All Is there any difference(means full/limited access) in iphone SDK before and after enrolling in iPhone developer program ? Thanking in Advaced... ...

Problems reading PDF document using iPhone SDK?

Anyone succesfull tried to read the Catalog dictionary of a PDF document, using iPhone APIs? I'm not getting anything that makes sense: Most dictionaries inside the Catalog are empty. ...

What's the keychain service in iPhone?

What's the keychain service (kSecAttrService) in iPhone? I haven't found a concrete definition of "service" in the docs. Is it just a category for keychain items inside my app? Does the value matter other than categorizing items inside my app? Thanks. ...

Upload file problem

Hello, When I use file upload code of kitchesink (xhr_fileupload.js), in my app. file has been uploaded from photgallery to my server successfully but at server side(php) I got array of media in that array I got $name = $_FILES['media']['name']; but this $name is always "file", I didn't get actual name of file and extension of that file...

iPhone Development - Is Pin Annotation in a viewable Map Region

How can i check if a pin is in viewable region of the map (MKMapView)? ...

How to add another subview to a NavigationController view

I have a window and add a navigation controller's view to it, all I want is for the navigation controller's view to take half of the window (top half) and want to add another view to bottom half. I'm trying to set the frame for navigation controller's view, but 0,0 is the topmost point on screen (doesn't count the iPhone's status bar). I...

Function should return float, but it gets messed up!

Hi guys, I'm going crazy here. I have a function that should return a float number: - (float) getHue:(UIColor *)original { NSLog(@"getHue"); const CGFloat *componentColors = CGColorGetComponents(original.CGColor); float red = componentColors[0]; float green = componentColors[1]; float blue = componentColors[2]; ...

how to use single instance of AVAudioPlayer for playing multiple songs?

I want to play multiple songs with single object of AVAudioplayer, I put songs in table row , when user tap on row player view is open but when user go back in other row in table player play both songs simanteniosly . what I Can do to fix this? ...

question related to UIColour

I have RGB for setting colour of my label it is like this R-:0 G:-78 B-255 and hash code is #004eff can u tell me how to give this to my label as under below UILabel *label; ...

Objective-C View drawRect: change the Rect

In my UIView's drawRect, there's a parameter rect, which is a CGRect, where would I change this rect? I'd like to use it as a camera for a game that I am making, such as rect.origin.x = myCamera.x; rect.origin.y = myCamera.y; and then my drawing functions should draw it where the camera is placed... How would I change the rect? ...

Do not fetch app.manifest each time

For creating an offline version of a bunch of linked web pages I use an app.manifest-file that lists all the web pages for offline caching. I would like it that the app.manifest file is not fetched every time when a user jumps from one web page to another. Most of the web pages will never be updated once the application is on the iPhone...

Which font and size does apple use for the navigation bar title?

I made an totally custom navigation bar and would like to use the exact same font and size like apple does for the title of their navigation bar. It looks like some kind of fat printed arial, but not sure if that's right. Does anyone know? ...

IPhone sdk, more accurate collision detection and set the frame/bounds of UIImageView...

Hey, Im having a big problem with my app at the moment, its all too inaccurate. I have a image of a ballooon, https://dl.dropbox.com/u/2578642/Balloonedit.png And i have a dart which if it collides into the balloon the game ends. At the moment i am populating the image of the balloon with 8 UIImageViews. and i am detecting if the dart...