iphone

iPhone SDK Accessing Address book company contact

Hello I have been able to use the SDK to access Address Book contacts for people, but whenever I pick a contact who is a company, my app crashes. does anyone know the property for the company field? does anyone know the code to make it work? thanks in advance ...

What about this custom uialertview ?

Hi, this is the code i have taken form..... - (void)willPresentAlertView:(UIAlertView *)alertView { [[[alertView subviews] objectAtIndex:2] setBackgroundColor:[UIColor colorWithRed:0.5 green:0.0f blue:0.0f alpha:1.0f]]; } - (void) presentSheet { UIAlertView *baseAlert = [[UIAlertView alloc] ...

[iPhone] PDF generation using data

Hi, In my iPhone application, I have several data items. I want to generate a PDF file using these data items and attach the PDF file in email. As I know, I need to use Quartz 2D to draw the PDF file. Is there any sample code or suggestion about drawing PDF? Thanks in advance. ...

iphone app run on background?

hi experts, is it any possibilities iphone app run on background, because my task is to retrieve wifi info and send it to the server about ssid & rssi, how this can be done, thanks ...

SubViews not properly initialized using IB

I'm having trouble getting my SubViews properly initialized using Interface Builder. I have the following View hierarchy (UIWindow -> BlankCanvasView -> StalkerView). BlankCanvasView is a subclass of UIView and StalkerView is a IBOutlet of BlankCanvasView @interface BlankCanvasView : UIView { IBOutlet UIView *stalker; } @end I've...

How to convert an image to data in iphone

can anyone tell me how to convert an image(PNG) to data in iphone ...

Drawing half image

Hi all i am having .png image.I want to draw only half of this image.If i call method drawInRect: on image with width being half the size of image,it will still draw the full image in given rect.So how to draw half image ...

how to transform GLImageProcessing example result to UIIMage

hello,I'm a newbie on iphone develop,I get the example of GLIImageProcessing,and I want to do same image processing ,and now I want to know how to transform GLIImageProcessing example result like brightness to a UIImage,thank you. ...

UIPickerView with Multiline UILabel

I'm currently working on a program that populates a picker view dynamically from my Core Data set up. I have everything working data-wise but the problem i'm running into now is formatting on my labels. The picker is presented with it's own toolbar in an actionsheet with a button on the right side of the toolbar. It's initial state is ...

how to move the cursor to next UITextField programatically?

hi, i am developing an application where i am creating some UITextField programatically, and i allow maximum 1 character in the text field . which is working perfectly. But after writing the charcter user have to again click in the next textfield to appear the keyboard So, now i want when after writing 1 character the cursor should a...

Get the identity of the image loaded at the centre of the screen currently?

I have a uiscrollview with contentsize 1280*1280 and 25 images of equal size loaded in it. When i scroll and meet an end, I want to know the identity of the image which is currently present at the screen centre. Given below is the code that i used to load the images into the scrollView. How can i figure it out? for (i = 0; i < 5; i...

How come my Core Animation transformation always returns to it's start-state?

Hello experts! I am trying to perform some kind of animation of a layer in my iPhone application. It does not matter what I do I always get the same results: after the animation is done it jerks back into it's original position. Even though I set removedOnCompletion to false there is no difference. What am I missing here? Thanks in adv...

reorder row in uiitableview

In my application, i want the users to reorder the contents of the differnt rows as well as to delete the rows they wish to. How to implement that ...

Objective C - UIActivityIndicatorView positioning

Hi, I have a UIActivityIndicatorView that I create and position in loadView function. It works fine except that I can see for a split second the UIActivityIndicatorView on the top left corner before reposition itself to the center of the screen. Why does it do that? And how can I prevent that? I also try creating the UIActivityIndicat...

how to display real advertisment in our application?

I have implemented game application in which i want to display real advertisment. i have downlaod sample demo for advertisment but ibn which there is iphone test demo advertisment is display.i want to display real advertisment.so please help me about this query. ...

crop image from certain portion of screen in iphone programmatically

Hello, NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; CGSize contextSize=CGSizeMake(320,400); UIGraphicsBeginImageContext(self.view.bounds.size); UIGraphicsBeginImageContext(contextSize); [self.view.layer renderInContext:UIGraphicsGetCurrentContext()]; UIImage *savedImg = UIGraphicsGetImageFromCurrentImageContext(); UIGr...

how to implement TouchXml Parser?

i have implement demo using TouchXml parser.Its working fine.But i want parse xml like below. example: <Root> <tag1></tag1> <tag2> <temp1></temp1> <temp2></temp2> <temp3></temp3> </tag2> <tag3></tag3> </Root> how to parse this type of example? ...

How to convert data to image in iphone

I converted an image to data in iphone using NSData *imageData = UIImagePNGRepresentation(your_image_here); After that i transferred it to another iphone using bluetooth. Now i need to convert the data back to image. Can any one tell me how to do it. ...

Is there any free/open source map engine for iPhone?

Hi I have a bunch of map images and i wonder if there is any free/open source map engine that I can use for iPhone development. Just like google map api but they are for native development ...

iPhone MapKit error.

I just started the use of Mapkit Framework. I got a sample code from here. But when I build the code it returns the following error. /SourceCache/GoogleMobileMaps/GoogleMobileMaps-201/googlenav/mac/Loader.mm:195 server returned error: 407 It does not shows the map. I am confused whether the code has an error or there is some error w...