iphone

UITableview for iphone programmers

I have UITableView.when i click on it's 1 st row one another UITableView opens and when i click on 2 nd row UIDatepicker opens. my question is why my UIDatepicker and UITableview is not autoresizes though i set it's autoresize property. ...

What Icon is Appropriate For Sorted by Time?

I have a duplicate bridge scoring application with two different sorting modes. Let me fill you in on how duplicate bridge works so you have an idea what I'm looking for. You sit and play a few hands of bridge against one set of opponents. Then you and the boards move and you play a few more hands of bridge against a new set of oppone...

how i get map for particular area?

I don't know about map-view.I want map for particular area for that what to do?if it is possible then give me the answer with example and code. ...

Approaches to save some NSManagedObjects but not others?

Hi folks, I'm working on a Core Data iPhone app that pulls remote resources from the web into NSManagedObjects and saves them locally. I want the user to be able to designate which of these objects should be saved. This means that some will be saved, but many should be deleted. However, I might want to save and delete at different time...

CLLocationManger gives old location. How to get the new location?

Hi, I am using the CLLocationManger to update the current location. Though its giving me the location but the location I am getting is of much older timestamp. I am facing the problem in, how to force the locationcontroller to update the fresh location not the cached location. Currently I am using this tutorial...... http://www.mobil...

subview outside parentview frame events

Hi, I'm adding programmatically an UIView B to another UIView A. The A frame is {{0, 372}, {320, 44}}. B UIView is add at {0, -74} and is {320, 74} wide. My problem is that B touch events are not handled. More precisely touch events are handled to a sibling UITableView of UIView A wich ends at {0, 372} even if B UIview is displayed ov...

Consuming .NET Web Service in Objective-C [iPhone]

Hi all, I am looking for some tutorials on how I can consume a .Net webservice on the iPhone platform (3.0). I have never looked at Cocoa XML prasing before, to the more indepth the tutorial is the better. We have an existing webservice framework currently in place, which return XML, so I would ideally like to consume these, as opposed...

Colors on iPhone display darker than color values

I recently noticed that colors are now displaying darker on iPhone than their actual color values. (Taking an iphone screenshot of an image and using a color utility show that the color values are darker). This seems to be a recent change as I have an iphone screenshot of the same image on OS 3.0. Has Apple changed the iPhone's gamma or ...

how to move an UIImageView image with swap like feature?

I want to build a simple application where there is a image presnt in uiimageview and when user swap the image to left ,right ,up or down with finger it will move to that corresponding direction . Any solution?? ...

Add Text to UIImage

Hello All, How to Add Text into an Image and display as one Image. Iam selecting image from Photo Library and then writing text onto it and want to save as one image?so can anyone know who to deal with it? ...

MultiView application for iphone

Hi All, I am new to the iphone development and have to develop a multivew application for the same. I want to do the following: On click of a button in the main window; we have to open a new view that has a toolbar with items & a tab bar in it; with some text data in between from a service. If the user click on any of the toolbar ite...

Add Music Files from iPhones Music Library

Hi all, I am trying to create a music player. now i am able to play a bundled sound. now i need to select a new sound from the iphones music library. can any one provide me some sample code to do that. Mine is a simple music player. which plays the selected music from the library. Thanks in advance, Shibin ...

XCode 3.2 - can't create Objective-C class

My installation of XCode 3.2 has begun to exhibit some strange behaviour. When I try to add a basic Objective-C classs (inheriting from NSObject), in my iPhone project, I get the following popup: "Alert. Couldn't load the next page". The above-mentioned error happens at the point of trying to create the file (i.e. the creation process...

Passing an NSDictionary to a ViewController from AppDelegate

This is related to a question I asked earlier, but the original question was answered. Hope it's okay to open a new question, if not, feel free to delete it. I'm trying to build a simple iPhone application using tableviews and a tabbar. Every view is the same programmatically, except for the title and the kind of data which needs to be ...

How do I store credentials so I do not need to authenticate to a server each time?

I just finished implementing my first iPhone application , everything went well, now I need to supply a sort of security to my application and I don't know what is the best way to do that ? Currently it works like this : the user enters his user name and password , the server verifies that this is the correct information , when I made...

OpenGL ES render to texture, then draw texture

I'm trying to render to a texture, then draw that texture to the screen using OpenGL ES on the iPhone. I'm using this question as a starting point, and doing the drawing in a subclass of Apple's demo EAGLView. Instance variables: GLuint textureFrameBuffer; Texture2D * texture; To initialize the frame buffer and texture, I'm doing th...

Using NSUserDefaults from javascript webapp

Hi! I need to store and access preferences (like colour, etc.) from a javascript webapp.. Is there some webkit access to the NSUserDefaults? (or maybe CFPreferences ?) ...

Memory Crash due to [super dealloc] of uiview controller

i am having a uiviewcontroller instance and when i am releasing it the deall method of it is called......i have released some objects in dealloc method of that uiviewcontroller.....if i comment [super dealloc] the app is working fine but if dont it is crashing....i think there is no problem with the releases that i am doing in that metho...

iPhone > Submitting a web form, handle cookies..

Hey all, I'm not at all sure where to get started with the following. Bascially the scenario Is, from my iPhone app I want to be able to login to a web form (via username/password combo) and perform another action. I want the process to be able to handle session persistence via cookies. My first thoughts were to look at going down the ...

iPhone - get duration of linear PCM audio file

Hi I have a linear PCM file (.wav) in my app and I would like to get it's duration programatically. I could find the following using AudioStreamBasicDescription but could not make out how to get the duration in seconds. mFormatID mSampleRate mChannelsPerFrame mBytesPerPacket mFramesPerPacket mBytesPerFrame mBitsPerChannel Can someone...