iphone

How to work with the CABasicAnimations

Hi all, I am very new to the Animations, I need a CABasicAnimation that how to implement for an image to move it to bottom left to upper right. I tried with different examples but I am not succeeded. Alos I not using a Interface Builder I am using a viewcontroller to implement this. Please help me. Thanks in Advance, Sekhar. ...

iPhone SDK: UISearchBar: searchBarTextDidEndEditing not firing

Hello... I'm implementing a search bar on my table, which should be pretty straight forward. I've got these: - (void)searchBarTextDidBeginEditing:(UISearchBar *)theSearchBar { NSLog(@"searchBarTextDidBeginEditing"); } - (void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchText { NSLog(@"The search text is...

iPhone - APNS Ports Incoming or Outgoing

Hi guys, i have limited access to the ports in my network so i need to know exactly which ports are outgoing/incoming or both. 2195,2196,30 (Used in PushMeBaby as SSLServerDomainName) , 5223(for device to receive PNS while in wifi network). ...

iPhone: POST connection request format error

Hi all, im using the following code to open a connection NSString *message = [NSString stringWithFormat:@"body of the message"]; NSURL *url = [NSURL URLWithString:@"sample url"]; NSMutableURLRequest *theRequest = [NSMutableURLRequest requestWithURL:url]; [theRequest setHTTPMethod:@"POST"]; [theRequest setHTTPBody: [message dataUsing...

Getting the height of HTML Content.

Hello all, I am loading an html file in to an UIWebView. Now I want to know that is there any way I can get height of the contents being load in the UIWebView? Thanks in advance ...

Playing sound at specific frames in cocos2d.

Hello, How to Play sound file at specific frames. Means i have to play sound with frames changing. Thank You. ...

iPhone 4.0 build on iPad

I am currently developing a app with deployment target as iPhone 3.1 and base SDK as 4.0. I am not designing my app specially for iPad, many folks say that this will work on iPad as well. So please let me know whether this is correct ? if yes, what should be specified @ iTunes connect for iPad and iPhone? should we specify anything spe...

Unable to retrive data in string

self.pdfPath = [[NSBundle mainBundle] pathForResource:@"iPhone_SDK_License" ofType:@"pdf"]; NSData *htmlData = [NSData dataWithContentsOfFile:pdfPath]; NSString *htmlstr = [[NSString alloc] initWithData:htmlData encoding:NSUTF8StringEncoding]; It is showing nil in htmlstr, so need some assistance on it. ...

sqlite database

1 while running, data is not showing in views after Inserting/Updating in sqlite3 databse.How do i refresh database?? 2 in xcode where do i close my database?? ...

Resizing a UIView on iPhone at run-time.

I'm trying to resize my app's view whenever an iAd is scrolled down from the top. The problem is that in run-time, when i set the resized frame size of the relevant view, the resizing doesnt happen 9so the iAd is draw on top of the top 50 vertical pixels). If I set the UIView size at design-time, then I see that the view is resized (whe...

how to get destination page number from the pdf table of content during parsing?

I have implemented pdf reader for iphone.I have got the table of content using objective c. But i want to get page number from the table of content. How it possible please help me. I have used below code for table of content. - (OutlineItem*)recursiveUpdateOutlines: (CGPDFDictionaryRef) outlineDic parent:(OutlineItem*) parentItem leve...

how to traverse in the plist

How can I traverse in the plist to get the value number? My plist looks like this: Arrays Array Dictionary Number Number Array ... So in code, I've already started something: NSString *imagePlist = [[NSBundle mainBundle] pathForResource:@"Imageinfo" ofType:@"plist"]; NSArray *imageArray = [[NSArray allo...

Proper way to release view in UIViewController

I am building my own view in loadView of view controller. Just to check if I can release the view like below or there is anything else I will need to release it? I know framework will set it to nil once it requires to free up some memory. - (void)loadView { self.view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 200, 200)]; [...

Draw a transparent box on the iPhone

How do you make a transparent box like the one for the PDF viewer that shows the page number? ...

App with expanding animated line in iOS ... howto

The basic idea is very easy. Simplified you could say... a snake like line realized by a let's say 3px line is expanding across the screen collecting and interacting with different stuff, can be steered through user input. Like a continous line you would draw with a pen. I've already started reading apple's documentation on Quartz/CG. A...

Is UIToolbar a subview?

I have programmatically created a UIToolbar. As part of the code I use the following: [self.view addSubview: toolbar]. I tried adding atIndex: but get a warning that it may not respond. I was thinking of swapping the toolbar view for another view to hide the toolbar on the stack. In the end, I have been trying to hide the toolbar when...

xcode hangs on breakpoints

I have sample application it works fine. When i set breakpoint in my project it didn't step over from breakpoint, the application hangs with that break point its really hard to find what the problem is. With out break points its work fine. I want to test some variables with breakpoints in simulator 4.0 debug can anyone help me? Thanks ...

Getting the position of an HTML element in UIWebView

Hello all, I have UIWebView loaded with an HTML file. I want to know the position (means x and y cordinates) of an HTML element on the screen when the webview is loaded. Thanks in advance ...

How can i make my iPhone Application to iPad Compatible without using Jailbreak?

Hi!i have made iPhone Application and i want to make it iPad Compatible without using Jailbreak mainly i have used ImageView,UITableView,UIScrollView that's it. ...

installer Problem in iPhone app

Hi all, I developed on audio based application, when i drag and drop .app file into the iTunes its not at all showing in iTunes application list. The application size is 177 Mb. Is there any problem with the size. Please help me out in this issue. thanks in advance. Satya. ...