iphone

UIWebView does not persist authentication on iOS3.2/iOS4

I made an application that uses UIWebView to display a site that uses basic authentication. It stopped displaying the content since iOS3.2 (on both iPhone and iPad). My approach for authenticating users are: create a NSURLConnection implement didReceiveAuthenticationChallenge to provide the credential implement didReceiveResponse to r...

how to change image on tap in table view for iphone

i have a imageView in table cell now i want to chnage image on tap how to do that switch(indexPath.section) case 0: CGRect frame; frame= CGRectMake(20 ,10, 270, 180);//277 182 UIImageView * myImageView = [[UIImageView alloc]init]; myImageView.image = [UIImage imageNamed:@"Abe1.jpg"];// abe2, abe3.png ...

adding UITableView with code

Hi I am very very new to the iPhone programming. I am kind of playing with the sample code. My first question is if it is possible to add the UITableView with the code only. If it is then here is my code that i am trying to add UITableView to the navigation controller. analyticsTable = [[UITableView alloc] init]; [self.view.window ...

How to autorotate UIScrollView and UIImagewView programatically?

I have a UIScrollView and a UIImageView which I have created programatically without interface builder. How can I make sure both auto-rotate in horizontal orientation? ...

how to detect touch event in table cells for iphone

how to detect touch event for table cells i tried this - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { //<my stuff> [super touchesBegan:touches withEvent:event]; } but its not working actuallly i have aUIimage view in table cell and i want to chnage imgae based on tap so my touch event is not working for...

UIAudioPickerController for iPhone App?

Not sure what to call this, but I'd like to offer a way for users to pick and control their music from within my app. I've seen a few apps that offer an "iPod" button that appears to bring up the iPod app. Is this a built in control like the UIImagePickerController or have they simply duplicated all the functionality? ...

Memory management when doing multitasking in iOS 4

According to Apple... apps should reduce their memory footprint as much as possible when running in the "background" (suspended mode). I reduce the memory footprint of my app by releasing a bunch of 2D textures in ApplicationDidEnterBackground and reloading the same textures in ApplicationWillEnterForeground. Everything works for the m...

Table data in SQLite database shows fine in Simulator but does not appear when deployed to device.

Table data in SQLite database shows fine in Simulator but does not appear when deployed to device. Would appreciate if anyone can help. ...

Is it possible to create a php based iphone/android app with PhoneGap or Appcelerator?

I want to be able to make an iphone and android app using php. I have looked at phonegap and appcelerator and it seems like only html and javascript can be used. These frameworks want to make it easy to make apps using web technologies and PHP i would argue is one of the biggest web technologies, but I'm not seeing much (if any) support....

How to get transparent image from OpenGL ES context on iPhone

Hi, I got a problem with OpenGL ES on iPhone. I'm working on a project, it draws something on the view, and then save the image. It also has a background image. I combined the image get from view and the background image. I set the view's opaque property as NO, but the image get from the view still opaque. So I could not combine the tw...

Formatting tips for Objective-C nested blocks

I don't mean to start a code formatting holy war here, but I'm wondering if anyone has any advice on how to best format nested blocks in Objective-C. Here's some code I wrote today: [UIView animateWithDuration:1.0 animations:^{ self.alpha = 0.5; } completion:^(BOOL finished){ [UIView animateWithDuration...

reload UIWebview in Iphone sdk

hi im create 5 webview at runtime.I Want to know how i change webview background so that effect is seen directly. ...

Questions before writing own RSS reader for iPad

This is not new topic, one about iPhone ( iPhone RSS Reader ) My purpose is to get some latest and useful info before my implementation for RSS reader in iPad.( same with iPhone , right ? only GUI difference ?) Apple already provides TopSongs as example, which use native NSNetwork and XML parser etc. ASIHttpRequest also provides good...

SQLite DB in iPhone

Hello , Can you please tell me how to create SQLite DB in iPhone and to perform CRUD operations from objective c program to databases. How to do it programmatically?? I know to create DB and table through command line, but how to do it programmatically?? Help me.. Thank you. ...

error message: expected ')' before 'NSRect'

I am having a strange error in the program. However, I do not find any syntax error. The error is: expected ')' before 'NSRect'. How can I get rid of it? I get those errors in line 1 and 2. I also tried importing Foundation/NSGraphics.h. It did not work. #import <Foundation/Foundation.h> @interface MyQuartzView : NSObject { } - (id)i...

Objective c memory leak.

Here are two methods that return a dictionary of my custom four-propery objects. They make arrays of strings, floats and BOOLs to put in the Chemical objects, then build a dictionary from the arrays. I'm new enough to the whole memory management game that I'm not always sure when I own something and when to release it. I'm making all ...

How does Bonjour Over Bluetooth Work

Can anyone explain how bonjour works over bluetooth from iphone OS 3.0 onwards? The documentation says the Bonjour API's used in the application just works even if Wi-fi is off and Bluetooth is on. It also says , a Bluetooth PAN is established and hence IP address comes into picture. But Bonjour (based on mdns) requires multicast to wo...

how to add new font to Xcode 3.2?

hi all, please tell me how to add new font to iphone xcode3.2. thanks in advance. ...

Circumvent screenshot for iOS 4

I would like to clear a view before an application is switched away from, to change the launch image so that the next time the app is entered it will not display some insecure data. iOS 4 provides applicationDidEnterBackground and applicationWillResignActive...however, neither of these seem to be able to prevent the screenshot from bein...

NSString's superclasses go on forever.

I've got a method that when put a breakpoint in it and hover over a string, says it's out of scope and you can drill down into the NSString object for what seems like forever. I've tried to put a screen shot... hope it shows up. I think I have some serious memory management problems... http://web.me.com/gazelips/Site/Blank_files/scree...