iphone

how to animate images in view background

hi i am new to iphone.what i need is i have to place a images like stars in the sky and animate the stars glow for example i am showing a sample image how can i done this pls post some code or link regarding this.sorry for my poor English.Thank u in advance. ...

Convert an image to an iPhone toolbar icon

I have a grayscale icon that I'm editing with Photoshop with a transparent background, but I can't, for the life of me, figure out how to convert the icon to one that can be used as an iPhone toolbar icon. If I simply save the image as a PNG, it doesn't show up as anti-aliased on the iPhone because every pixel with color is being rendere...

deleteRowsAtIndexPaths doesn't release the cell?

Hi, I have a functionality in my table view i.e. when you tap in on cell it loads more cells in below the tapped cell and when you tap again on same cell those added cells gets deleted. But I have got a strange behavior that when i call below method to delete added cells from table view, the dealloc method of cell isn't being called..(...

UITextField crashes app when entering apostrophe (')

Hi friends, my application is crashing when I enter an ' (apostrophe) in the textfield. Can anyone please tell the solution for the problem. Below is the place where it crashes hotelTextfield.text = [hotelList objectAtIndex:indexPath.row]; I entered other strings in the textfield but those didn't cause any issue. But whenever I enter...

Duplicate symbol between two libraries

Hello, I have the following problem: I'm linking against the Admob library which contains some part of the GData API. But I also want to link with the GData static library to use it directly in my own application. Of course, I get duplicate symbols at link time. How can I avoid that? ...

how to get all button tag values from a group of buttons

hi i am new to iphone. what i did is creating group of buttons in the view.My code is as fallows - (void)mymethod1 { UIView *view = [[UIView alloc]initWithFrame:[[UIScreen mainScreen]bounds]]; int row = 0; int column = 0; for (int i=6; i<_images.count; i++) { buttonimage = [UIButton buttonWithTy...

Playing AudioPlayer Problem

HI all, i am using this code to play AVAudio player What i am actually trying to do is, when i finsieh animation, i get a count value and play audio player with the count value which should match to SOundList array from pList. like if count =1 than array int i = 1 ======="play track 1" count =2 than array int i = 1 ======="play track 2"...

how to get elements having particular name from a NSMutableArray ?

I have a NSMutableArray consisting of several elements. From this array I want to pick out only those elements that contains the word "example" in any form (words such as exampleId, putexample or getexampleId). How can this be done? ...

HTML Movie player in iPad modal dialog

Hello, I have modal view controller: [ self presentModalViewController: some_controller_ animated: NO ]; In this controller i have UIWebView with player - <video> tag. <video id="player" width="420" height="310" autoplay='true' controls> <source src='<TMPL_VAR NAME=VIDEO_URL>' type="video/mp4"/> </video> It has native contr...

i want to know how this code works or plz tell some basic logic to vaidate email ?

NSString *e = email.text; NSString *emailRegEx =@"(?:[a-z0-9!#$%\\&'*+/=?\\^_`{|}~-]+(?:\\.[a-z0-9!#$%\\&'*+/=?\\^_`{|}" @"~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\" @"x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@(?:(?:[a-z0-9](?:[a-" @"z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\[(?:(?:25[0-5"...

How to display a view when webview is touched continously for 10 sec?

Hi, I am displaying a pub or a pdf file in webview.But i am not able to detect the touch on the webview. - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event above method is called when i touch any text of the pdf or pub file.How can i detect the click on the webview which is displaying a pdf or a pub file.Please help me...

UIImages to movie with AV Foundation

I have a serious problem with the AV Foundation. I want to render the animation of several UIImages to a movie file. I just want to make a movie file in which the images are changed every 1/x second. Currently I am using the code shown here http://stackoverflow.com/questions/3401313/need-hints-for-using-iphone-sdks-avmutablevideocompo...

how to unzip an image in the iphone code

to unzip an image file sent after gzipping it on the server side i know i have to use gzopen. i want to know if there is a more direct and simple way to do this with 'compressiontype' or something related that once i have the 'zipped image data' received from the server using NSURLconnection can i load an imageview using an easier metho...

How do you set a UIImage using an absolute URL?

I am trying to set the UIImage of a tableview cell to an absolute url, here's the code i have already: NSString * imageURL = [[stories objectAtIndex:indexPath.row] objectForKey:@"images"]; NSURL *url = [NSURL URLWithString:imageURL]; NSData *data = [NSData dataWithContentsOfURL:url]; UIImage *img = [[UIImage alloc] initWithData:data]; /...

Iphone 2.2 sdk help

I am searching for the iphone 2.2(.1) sdk so I can test my apps. also I am looking for the ipod touch 1st gen 2.2 firmware restore (felixburn or whatever's link to it is broken). Can anyone help me out please? thanks in advance ...

Simple Question about Core Data

Hello, I using the project named coredatabooks from apple developer examples. #import @interface Book : NSManagedObject { } @property (nonatomic, retain) NSNumber *active; @property (nonatomic, retain) NSString *title; @property (nonatomic, retain) NSString *author; @property (nonatomic, retain) NSDate *copyright; @end I need ...

how to know which font can use in CGContextSelectFont()

in CGContextSelectFont how do i know which font are available? ...

Compiling against iOS SDKS

Hello all! I have a question regarding compiling against SDK's, which I thought I understood until yesterday. I have an iPhone app, which the version compiled against SDK v3.2 and running on an iPhone emulator runnning version 4 works fine, but when I recompile the app against SDK 4 the interface starts to mess up. I thought when you...

UITabBar selected tint color

I need to change uitabbar selected tint color from blue to yellow. How can i do it??? Can any one help me with this?? ...

scrolling vertically

hi all, i am using the following code to scroll image on scrooll view, StoryViewScroller = [[[UIScrollView alloc] initWithFrame:CGRectMake(0.0f, 79.0f, 320.0f, 262)] autorelease]; StoryViewScroller.contentSize = CGSizeMake(NPAGES * 320.0f, StoryViewScroller.frame.size.height); StoryViewScroller.pagingEnabled = YES; StoryViewScroller.del...