iphone

file browser in iphone ?

I am new to Iphone.How to create file browser in iphone ? I wish to show all the files and folders in the iphone.How to do this? ...

MPMoviePlayerViewController freezes when exiting fullscreen

I'm playing a video with MPMoviePlayerViewController on the iPad. Problem is: I can pinch the video to go in fullscreen mode, but if I try to pinch again to go back to window mode it freezes. It doesn't crash the app, it just "pauses" the video and I can't exit fullscreen mode anymore. Has anyone experienced this? Thanks. Edit: it see...

Problem modifying UITableViewCell accessoryType in tableView:didSelectRowAtIndexPath:

I have a transparent table view (UIViewController with subview UIImageView, and another subview UITableView on top of the UIImageView sibling with background = clearColor, UITableViewCells background = clearColor). I also want taps on the cells to toggle the cell's accessoryType between checkmark and none. If I modify the UITableViewC...

Drawing outside the viewport in OpenGL ES 2.0

Hi there, I was building a 2D project in OpenGL ES 1.1 but decided to switch to 2.0 since I was only going to be developing for the iPad. In 1.1, when a viewport is set up, the notion seems to be that you are viewing only a part of the full 3D space e.g. CGRect rect = view.bounds; glOrthof(-1.0, ...

Correct way to use sizeThatFits: and sizeToFit with UILabel?

Hi there At the moment I have a label being sized correctly using [aString sizeWithFont:constrainedToSize:lineBreakMode:] but I've introduced rotation into my device and with a flexible width and height this results in my UILabel stretching width ways (because its set relative to the main view) but not then contracting height-wise to co...

iPhone simulator keeps app running on Build and Run

I have a problem with my iPhone simulator. Since yesterday when I press Build and run. Xcode builds the project Simulator closes the running app Simulator opens the running app in same state as it closed (multitasking?) The old build keeps running, I have to quit the simulator before i can run the new build. I tried cleaning the p...

Retrieve Int from NSUserDefaults MultiValue

I would like to retrieve an Int value from NSUserDefaults, but it always comes up as 0. This is how my settings bundle looks: Type: String: PSMultiValueSpecifier Title: String: Timer Key: String: timerValue DefaultValue: Number: 4 Titles: Array: 5 Number Items 1-5 Values: Array: 5 Number It...

Change background color of UIButton when Highlighted

Hi I want to change the UIButton background color which user Tap on the button. I am showing background color using gradient, when user tap I need to change the gradient color. [btn setTitle: @"Next" forState:UIControlStateNormal]; CAGradientLayer *gradient = [CAGradientLayer layer]; gradient.frame = btn.bounds; gradient.cornerRadi...

captured image not showing in uiimageView

hello all, i have a uibutton to trigger iphone's camera to grab image and i have a uiimageView in same view to show captured image , but it not showing anything after capturing... any solution ?.. ...

How to add data to UITableView ?

How to add data to UITableView ? I need array of data inserted in this view UITableView *tableView = [[UITableView alloc] initWithFrame:tableFrame style:UITableViewStylePlain]; [table numberOfRowsInSection:20]; table.backgroundColor = [UIColor clearColor]; ...

Record Sound that play with AVAudioPlayer

with below code i can record sound but this way record any sound that play around device i just want to record sound that play with AVAudioPlayer in my app.is it possible ? NSError *err = nil; AVAudioSession *audioSession = [AVAudioSession sharedInstance]; [audioSession setCategory :AVAudioSessionCategoryPlayAndRecord error:&err]; [a...

iPhone app - Error handling when communicating with the server

Hi, My iPhone application continuously communicate with a web server. So in case of a connection lost or the server is not reachable is there any specific precautions we should do? I know that we have to show the user about the communication failure. If so is there any acceptable way of showing errors to the user? Im more concentrated o...

Sql query to populate iPhone quick-access-bar (count rows by first letter)

I have a sqlite database, with potentially tens of thousands of rows, which is exposed as a UITableView on the iPhone. There's many columns in the relevant table, but for now I only care about a 'name' column. (The database is in a server app, the iPhone app is a client, talking over a socket) Naturally to make this usable, I want to sup...

Creating a navigation inside a navigation

I have following structure in my code. Main tab/bar controller. On clicking the button on tab bar my application opens a navigation controller with several options. I want to create another navigation after choosing an option from previous navigation. Can anyone help me with this. Cheers. ...

Can we give some background image for any uiview?

I need to set some background image for my view. How can I do this? ...

Why is my iPhone application not using the proper localization?

I have an iPhone application that initially had only English and German localizations. I just added a French localization, but when I change the user language to French it still shows the German strings. What could be causing this odd behavior? ...

Iphone cellForRowAtIndexPath Jerky when scrolling asynchronously problem

Hi all, I've released my app and noticed the jerkyness when scrolling in the CellForRowAtIndexPath, this is because i'm rendering an image from an JSON Feed via a URL. I've searched the internet and found a few examples and this one i've almost got working. The problem is when it renders the images don't match the correct title. Can some...

message queue for iOS / iPad - something like MSMQ?

I have an iPad app that works both on and offline but when I am offline there are web service calls that will need to be made once online availability is an option again. Example: A new client is added to the app, this needs to be sent to the web service but since we are offline we dont want to slow the user down so we let them add lo...

How can we set Fetch request to fetch single attribute? and also how to apply join query to retrieve data from core data?

hi, I am using core data which has two tables. I want to fetch attribute "VID" from table "DOSE" and based on this result i want to fetch the corresponding name of vaccine from another table "Vaccine".how can i set Fetch request to retrive just one attribute? And is there any mechanism to join the query through which based on the retri...

how to pop navigation controller to root in COCOS2D?

i have a FirstViewController that i have attach Cocos2d on it, when i try to pop thisview back to the rootviewcontroller how can i do it? i try to send message from CCLayer to FirstViewController to pop to root but not work here is the code in Firstviewcontroller (void)poptoRootview { NSLog(@"poptoRootview"); [self.navigationControll...