iphone

Is it possible to fire up a pop up like windows from a UIWebView?

How can I make a UIWebView's html/javascript to trigger a UIModalView to show up on page load? ...

Why is viewDidUnload called less often than viewDidLoad?

I put NSLog(@"%@::%@", [[self class] description], NSStringFromSelector(_cmd)); in both viewDidLoad and viewDidUnload of a view controller. In the log, I found viewDidLoad is called a lot more than viewDidUnload when the app moves to and from different .nibs. Why? ...

How to use regex to grab information from a web page?

Hello Everyone, I'd like to develop an iPhone application that get's it's data from a web pages using regex applied on that web page. I was wondering if that's possible by the SDK. Thanks ...

sending string between views

i have 2 views i m sending text in a button on 1st view to label on second view.... //////textfieldtolabelViewController.h #import <UIKit/UIKit.h> #import "seconview.h" @interface textfieldtolabelViewController : UIViewController { IBOutlet seconview *sec; //IBOutlet UITextField *t1; } //@property(nonatomic, retain)IBOutlet...

Can I autorelease a NSOperationQueue?

I have a piece of code which will run only once in the background when the app loads. I don't want to worry about memory management of the NSOperationQueue *, can I autorelease it? NSOperationQueue *queue = [[NSOperationQueue alloc] init]; NSInvocationOperation *op = [[NSInvocationOperation alloc] initWithTarget:self selector:@select...

Loading image from url problem iphone

Hi all, I'm loading images from url into webviews but that's showing me images which are cut down. I tried doing sizeToFit, but that shows a very small image cornered at left in my webview as the webage is large and image at its upper left corner. EDIT: This' how I'm loading images in webview. Here, expanded_photo is webview. NSStr...

Application Loader: "No eligible applications were found."

Hi All, We have already submitted an application for App Store (and it's live). To upload the updates, we were trying "Application Loader". But getting following error: "No eligible applications were found." "To add an application witg Application Loader, you must first log in to iTunes Connect and provide information about application...

How to display the UITableView programmatically?

Hi, everyone, I want to ask a question about the UITableView of the objective C. I am writing a program and I would like to create the UI programmatically. However, I don't know how to display the table programmatically. I already have a NSMutableArray to store the displayed data. And I create a object UITableView *tableData;, what sho...

how to insert png image in table view for iphone

i can show small image in table view but i want to load a png as a BG of each cells of my table view how to do that cell= [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil && searching==NO) { cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease];...

Load image from photo library

1.How can i load an image from photo library and show it in imagView? 2.How can i change image to black and white? ...

probelem with NSTimer

Hi I have a problem with a NSTimer I recived a "SIGABRT" error and "[NSCFTimer intValue]: unrecognized selector sent to instance " These is my code: -(void)detectionMove:(NSNumber*)arrayIndex{ static BOOL notFind = FALSE; static int countVariable = 0; static int countRilevamenti = 0; notFind = FALSE; for(int i =...

iphone screenshot specific area

Hi, I have a View including a Toolbar and a WebView UIVIEW UIToolbar UIWebview Now i like to make a screenshot ONLY from the WebView with: UIGraphicsBeginImageContext(articleWebView.window.bounds.size); [articleWebView.window.layer renderInContext:UIGraphicsGetCurrentContext()]; UIImage *screenImage = UIGraphics...

TV out an iphone application

Using the UIScreen API is it possible to display the same app screen on both ipod screen and external display. I have tried using UIScreen but application is displaying only on external display, not on ipod screen. Please guide me on right way ...

how to make a 'div' element drag on iphone .

this is my code,for some reason , i can't use any javascript lib ,like ;jquery: <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" style="height: 100%;"> <head> <meta http-equiv="Content-Type" content="text/html; chars...

Why am I seeing the error "Format is not a string literal and no format arguments"?

Hi all, i am creating a music application in iphone where i am integrating twitter in my iphone so that a user can listen to a particular song click on the twitter tab ,log in to twitter and post his comment in to twitter.and i need that his username and password should be saved when he click on save username and password button so that...

iPhone: Making a simple high score system using SQLite.

I want to make a simple highscore system for my game. No posting online, just storing your best scores on the device, maybe being able to share them on Twitter or something like that. My table is like this: CREATE TABLE highscores ( name VARCHAR(10), score INT ) and then I want to find an easy way to retrieve the name, score and orde...

Error EXC_BAD_ACCESS

Hi, I'm new in iPhone developement and I have a EXC_BAD_ACCESS error. In my .h I declare: NSString *myString; In my .m I have to methods: . The (void)locationManager of CLLocationManager interface when I do it: myString = [NSString stringWithFormat:@"%lf",loc.longitude]; NSLog(@"%@",myString); // it works . A (void)sendPosition ...

how insert data to remote database from ip+phone Application

hi all. I am accessing a php website in my iphone application. i want that user read the blogs in their iphone application and when they comments on any blog their comment are stored in the website database. any idea how to do this. OR what i need to study to Talk with remote database..... Thanks In advance. ...

how to add a contact from my app to iphone address book

I would like to implement the ability to save a contact (phone number, name, address and email) in the iphone address book by clicking on a button in my application! How can I do this? ...

Can i use openGL on iphone (native) web apps?

Hi, I want to build an web app that uses openGL, a native one. (examples: http://www.apple.com/webapps/index1.html) I must use openGL and i cannot figure out if i can build a plugin that uses the native openGL component. I do not want it to look as openstreet map or google map in javascript. What i really want is not simple web app, bu...