iphone

Conversion From XML to PLIST

I have a to convert some 1000 xml files from XML to PLIST format(such as and . Is there already existing tool/application or algorithm available? ...

jquery-ui "help: clone" not running on iphone , what should i do .

this is my code: <div class="demo" style="margin:0 auto;height: 100%;"> <div id="A" style="float:left;height:50%;margin:0 100px 0 0;width:100%;background:#333;"> </div> <div id="droppable" > <p>Drop here</p> </div> </div><!-- End demo --> <script type="text/javascript" src="jquery-1.4.2.min.js"></script> <scrip...

ViewDidDisappear does not get calling in Ipad Apllication?

I have used following code to insert new view in split view based application DelegateObj.splitViewController.viewControllers = [NSArray arrayWithObjects: FirstObj.navigationController,SecondViewControllerObj, nil]; Similarly when i want to come back I Popped view from 1st object and inserted ThirdViewControll...

Update title/subtitle for custom annotation on an MKMapView

I created a custom annotation to display my data. The data comes from moving vehicles and I've got to update their location on the map as well as their title (it shows the last update time). My first approach was to simply remove all annotations and recreate them. However this leads to a lot of horrible flickering (the map clears, and t...

How do I get a UITextView to use /n characters in strings as new lines?

How do I get a UITextView to use /n characters in strings as new lines? For example, I want the string "Hello world!/nHow are you?" to appear in the UITextView as: Hello World! How are you? But it instead appears as: Hello World!/nHow are you? ...when I write myTextView.text = @"Hello world!/nHow are you?" ...

can i play video form youtube for iphone

NSString *url = @"http://www.youtube.com/watch?v=DqCxv6a5Iu0"; /* NSString *url = @"http://www.youtube.com/watch?v=DqCxv6a5Iu0"; mp = [[MPMoviePlayerController alloc] initWithContentURL:[NSURL URLWithString:url]]; [mp play];*/ NSString *videoFilepath = [[NSBundle mainBundle] pathForResource:@"Movie" ofType:@"m4v"]; ...

MPMoviePlayerViewController, what if it fails?

I'm creating an application to scan barcodes and provide video information on the scanned product. I'm running into the problem where the MPMoviePlayerViewController ends up giving me a white screen if a video url is not valid. It should just go back to the previous screen if no video is available. How do I handle this exception? I can't...

How can i develop IPhone application on Windows just for testing?

Hello, I want to get a feel of Iphone and develop applications like HelloWorld just for testing. I surfed google and some of them show a painful procedure of installing Snow Leopard on PC which i don't want to risk because if something goes wrong my all programs installed will be useless and that would waste another 1 week of mine. I do...

Selecting a Frame from a video

How to select a frame from a video being played on an iphone and store this frame in an nsdata variable. ...

Upgrading to a universal app and sdk problem

Hi, I have an iphone app. I decided to upgrade it to iPad and installed the xcode_3.2.3_and_iphone_sdk_4__final.dmg I upgraded the app to an universal app. Before installation of new sdk, I could compile my iphone app with 3.0 sdk. However, after installation, I can only see iPhone Device 3.2 adn 4.0 sdks on xcode. I wonder, if I com...

Displaying a background image on UIWebView

Hi, I'm trying to build a native application that for all intents and purposes is HTML/CSS and Javascript. It all works fine, but when the UIWebView loads there's a delay while the DOM is populated, images retrieved etc. Is there anyway to display a background image on the UIWebView, or something behind it? Ideally this will be the s...

Free iPhone SDK Learning and Game Development Samples

Are there any free iPhone SDK Learning and Game Developement Samples available online? Please mention those URLs. ...

iPhone memory leak (a lot of allocations)

I tested my app in Instruments. No leaks found, but app crashes (not immediately - after ~20 minutes [depends on user's activity] of working). I viewed Allocations. It reports: Category | Live Bytes | Count Live | # Living | # Transitory | Overall Bytes | # Allocations (Net / Overall) Malloc 16 Bytes | 235088 | 14693 | 0 | 235088 | 1469...

Data Types and XMLParser

Hello, I syncing the data on my website to my app, I'm using NSXMLParser to do this. The problem is I have all the fields on my database defined as Strings. The sync process works fine when everything is a string, but this is causing me heartache further down the line when I try and use this data for other purposes. Can anyone help me ...

Determine the CTLine containg specific character + Core Text + objective c

I am developing an Application in which I am using CoreText for layout purpose. I have used CTFrameSetter to draw the text.I have inserted a blank character '\ufffc' in my text. Now what i want is to determine the position of this blank character i.e. its x, y coordinates. I have not been able to find any function to determine the positi...

iPhone Simulator Apps Crash

I am trying to run my app in iPhone Simulator, but it crahes on the start. Moreover, default apps (settings, Safari etc) crash too. Console doesn't show anything except [Session started at 2010-07-23 13:44:07 +0400.] Failed to launch simulated application: Unknown error. and there are no crash logs in /Library/Logs/DiagnosticReports. ...

How do I show and start animating a UIActivityIndicatorView from within a method

I have a method that does a time consuming operation, say something like ten consecutive calls to [[NSString alloc] initWithContentsOfURL:u]; I want a UIActivityIndicatorView that was in a hidden state before the method call to show and animate, so I write: activityIndicator.hidden = NO; [activityIndicator startAnimating]; at the be...

Cannot find protocol declaration in CocosNode

Hi, I have a LAYER class and created a protocol: @protocol countryControllerDelegate -(void)didReceiveGamePlayTimeWarning; @end And i make use of that delegate in a CocosNode class. #import "protocolClass.h" myClass: CocosNode [countryControllerDelegate] { But there is an error that "cannot find protocol declaration ". Is ...

Advanced iPad programming

I finished learning the Big Nerd Ranch Guide to iPhone programming but now I need a more advanced book for advanced concepts particularly for iPad App Dev. Could you please recommend one? ...

Disabled format-detection for iPhone/iPad webapp not working

Hi there. I have a webapp that displays many long numbers recognized as telephone numbers on iPhone / iPad. I used the meta tag mentioned in apple's reference to disable it: <meta name="format-detection" content="telephone=no"/> But this does not work if i load or reload the page normally. When I am reloading a part of the page with a...