iphone

Does any body have a simple application using REST api.

hello, i m the beginner in iphone programming i want to make an application which will receive data from REST api by using php web server. and can post something to it. thanks in advance ...

Split view controller - didSelectRow in master view controller being called before textFieldShouldEndEditing

I started off with the Split View Project Template. I have some text fields inside a table view in the detail view. I need to persist what the user entered in those text fields. However, when the user selects another row in the master view controller, the contents of the detail view get changed and the older changes in the detail view ar...

Connecting a Wireless Network programatically in iPhone

I have a requirement where the client needs to automatically connect to a active wireless network based on his location. The requirement is such that whenever a hotspot is available (in the absence of the user’s home network), the client will automatically connect to a wireless network present in that location and everything in that app...

Do I need more than one persistant store?

Hello everyone, Im trying to create a listing app that is core data backed.The first page lets you create as many list as you want and name them. By tapping on a name in the first view, you will be taken to that actual list where you can create the items in that list. However if I create 3 lists they each have the same data. Do I need a...

iPhone + Web Services best practices

Hi, Accessing Web Services inside an iPhone app is a matter for which I did not find a clear, beautiful solution yet. I'm not talking about how to send queries or parse responses here, but about a "big picture" answer. Disregarding the server-side technology, how do/would you plug your Model objects to your Web Service ? How do you des...

[iPhone] How load image in sample GLImageProcessing with UIImagePickerControllerDelegate

How to load photo in apple official sample GLImageProcessing ? I have succeed to load photo via UIImagePickerControllerDelegate, but in this sample, all image processing is based on OpenGL, which has its routine. My purpose is to find out one solution to change the photo source, then I can use this sample to process different photos. ...

asy there any way to change color of UIWebView of Iphone Application

Hi all I am using webview to display Data from RSS Feed Can I change color of WebView to Black From white. I have declare outlet in xib file named RemainingRssViewController and i am diplaying it from root view controller the code is NSString *htmlstring =[[blogEntries objectAtIndex: blogEntryIndex] objectForKey: @"description"]; ...

Loading MPMoviePlayerViewController with transparent background?

Hi, i´ve added a MPMoviePlayerViewController instance and playing of a movie works great. I´ve 3 buttons and want to load different videos in a UIView-container. That works, too. But if i click on a button to load an other video, everytime the background is flickering black. I´ve set the color to "clearColor": player.moviePlayer....

how to show pin on the map for iphone

hi all, I am making a map view , in that on a latitude and longitude i want to show a pin, i am new to making such application in mapview. if any one know it, please let me know. thanks in advance ...

How can I group MKAnnotations automatically regarding zoom level?

if the user zooms out on a MKMapView, i want MKAnnotations which are near to each other automatically grouped into one "group" annotation. if the user zooms back in, the "group" annotation should be split again to the unique/original annotations. apple does this already in the iOS 4 Photos.app is there a common, "predefined" way to do ...

Question on when and where to release an object

Hi, I have several places where I need to display an alert and handle the dismiss operation in the same way, namely take them to the same view controller. Instead of duplicating the alert specific code in all those places, I created a separate class like below: AlertUtility.h: @interface AlertUtility : NSObject { } - (void) displayAl...

what are some ways you could use Core Animation to create a curl or peel animation?

I'm trying to figure out how I could create a curl or peel effect on an image in my iPad app using Core Animation, but as I'm learning the API, I only understand different ways to move, scale, and rotate the 2D image (including the 3D transformations). I'd like to accomplish this effect on small, individual layers (i.e. sprites) that ha...

xcode... switching to a new view display an image which is randomly selected... iphone

when i switch to a new view instantaneously a random image is selected via the arc4random function and displayed in the view can some one give me direction on how to achieve the instant execution of random function selection process with out a button to prompt the random function process. any examples of code, were should the code b...

Touchable area of a UIButton

Is there any way to define which area of a UIButton is clickable? In my case I would like to have PNGs with an alpha channel overlapping. These PNGs should act as buttons - but only where alpha is > 0. Is there a way? Best Stefan ...

MPMoviePlayerViewController cleanup resources

Hi! Im using MPMoviePlayerViewController now instead of MPMoviePlayerController because of the bug in iOS4. Im not sure though how to clean resources of MPMoviePlayerViewController, when video playback is finished. I clearly have an issue because right after playing video I try to start a song using AudioStreamer (which uses audio queu...

How to get an update NSUserDefault on iOS 4?

Hello I am developing an iPhone application, I encounter a problem on the iOS4 because of multi task. This application has the default settings defined in a Settings.bundle. If I run my application then I left it (so it goes in the background). I'll change the settings and restarts the application (it comes out of standby and method: a...

iPhone icon size

Hi I am developing an application for iPhone to support multiple devices, iPhone 2-4. I had an issue with the app icon as it was shown pixelated in the iPhone 4 simulator so I have used a new image with higher resolution (300 x 300) to be precise. On the simulator its showing fine for both iPhone 4 and the iPhone device simulators. Howe...

Video only play sound when I moved from OS 3.x to 4

Well.. basically that's what happens, when I play a movie from a game I have, only the sound plays, the video doesn't, showing a black screen, even the touch is disabled. This is the relevant part of the code: myMovie = [[MPMoviePlayerViewController alloc] initWithContentURL:[self movieURL]]; myMovie.moviePlayer.scalingMode = MPMovieS...

Is there an iPhone OS4 iCal API ...

does anyone know whether iPhone OS4 contains an iCal API? If yes, are there code samples how to use it to add events to iCal? cheers ...

Render to texture still rendering to screen in OpenGLES

Hello there. I'm trying to get a bunch of stuff done in OpenGLES, but here's where I'm starting - drawing stuff to a texture, then displaying that texture. I create some buffers: glGenFramebuffersOES(1, &frameBuffer); glGenRenderbuffersOES(1, &colorRenderbuffer); glBindFramebufferOES(GL_FRAMEBUFFER_OES, frameBuffer); And then I set ...