iphone

editing in tableview using custom navigation item

Hi developer friends, I want a little help. I have a view which has it's own navigation bar and one tableview. I want to edit & delete item in that table view. I have placed and edit button on the navigation bar like this. self.navItem.leftBarButtonItem = self.editButtonItem; And also have one method like this. - (void)tableView:(UIT...

How do I respond to a click on the iphone status bar?

UIScrollView and UIWebView both have special handlers for when the user clicks on the status bar. Is there any way to handle status bar clicks in my views and view controllers? ...

OCMock returning values

Hey all, I'm trying to write a test for a method where the output depends on an NSDate's timeIntervalSinceNow return value. I'd like to specify the return value in my tests so I can test certain scenarios. I'm having a really hard time getting this OCMock object returning what I'd like. Here's my code: id mock = [OCMockObject mockForC...

Buttons for iPhone App. How?

We are building an flashcard iPhone App with a developer. Here are the screens: http://cobocards.com/blog/2009/09/iphone-app-geplant/lang/en/ Which images do I need to give the developer for buidling the app? - A Button in two states? - The Navigation Bar just in 1px for the background? - The immage for the button with the text or with...

Touch and focus on 3GS with showsCameraControls = NO

Hi guys. Im developing a program that makes use of UIImagePicker custom class made by me, and the thing is I want to be able to use the manual-focus feature on the 3GS (the part where the user points where the camera should focus) and at the same time to use custom overlay view. Ive set showsCameraControls to NO so that the images could...

Youtube App on iPhone ignoring private videos

Hello there. I seem to have noticed an odd bug in the YouTube App with the iPhone. I have written a small program that fires off the YouTube app with a url like: http://www.youtube.com/watch?v=adsakasjda This video is a private video held on youtube. When the Youtube player launches I receive the message "YouTube not available". HOWEV...

iPhone ASIHTTPRequest supports https?

Hi all Does the iPhone librarby ASIHTTPRequest supports https protocol? Thank you ...

UITableView allow two cells to have selected style at the same time

I have created a UItableView using the default Xcode template and configure it to display five rows. I select the first cell on the table. When I select another cell I notice the first one stay selected until I remove my finger from the second one. sample: http://img190.imageshack.us/img190/7184/cellsz.jpg I want a cell to become selec...

iPhone SDK audioSession question.

Hi to all. In my app i record and play audio at the same time. The app is almost finished. But there is one thing, that annoying me. When audio session is set to PlayAndRecord, sounds become quiet in comparison with the same sounds with the SoloAmbient category. Is there any way to make sound louder using PlayAndRecord? ...

Why wouldn't UIView respond to beginAnimations?

I'm trying to animate adding a new subview to a table view. (When the user clicks on the Plus sign button on the nav bar above the table view, I want a subview with a text field and a button to slide down from under the nav bar). However, when I try to call [UIView beginAnimations:@"textFieldSlide", nil] the compiler warns me that: ...

How to get user response when prompted for core location?

When I install my application on the iPhone it asks for the current location with the options "Don't allow" and "Ok" in an alert. How do I find out which option was chosen? I also want to show this option only once. If the user chooses to allow their current location to be found, I want the device to automatically get the location in the...

CGImageRef and drawing layers

I have this code: CGDataProviderRef provider = CGDataProviderCreateWithFilename([myFile UTF8String]); CGImageRef img = CGImageCreateWithJPEGDataProvider(provider, NULL, true, kCGRenderingIntentDefault); Later I load that CGImageRef in a UIImage this way: UIImage *uiImage = [[UIImage alloc] initWithCGImage:destImage]; I'd like to dr...

Objective-C with cpp extensions, I don't know what I'm doing...

So I'm still feeling like a novice at times when strange errors jump out of XCode. Yesterday I started getting this: ___gxx_personality_v0", referenced from: ___gxx_personality_v0$non_lazy_ptr That was when building a unit test target that used a ".mm" file in XCode with the iPhoneSDK. The error went away when I changed the file ...

NSArray of Dates sort

Consider this array. It has no keys, so I am not sure I can use NSSortDescriptor. What would be the best method to sort them? ( "Thursday, July 30, 2009", "Monday, September 07, 2009", "Wednesday, September 09, 2009", "Friday, August 14, 2009", "Saturday, September 05, 2009", "Monday, August 10, 2009", "Thu...

How can I animate a view sliding from under the nav bar on iPhone?

This is related to my last question. I have an application that I created from the "Navigation-based application" template in Xcode. (I have a UINavigationController with a UITableViewController subclass named RootViewController.) The table shows a list of strings the user can interact with. The nav bar has the standard Edit/Done butto...

programmatically powering off iPhone

Hi There , Is it possible to programmatically power off apple iPhone or does apple dissalow this. If apple disallow this is it possible to programmatically mute the sound on iPhone? Your thoughts are greatly appreciated. Tony ...

Keep a UITableView section from showing up as editing while the table is in edit mode

I've got 2 sections in a UITableView. The tableview needs to stay in edit mode, but only the first section is editable. Specifically, I want the second section to display as it would if the table were not in edit mode (tableviewcells are their original widths in stead of the left side being in line with the cells of the first (editable...

what it means : Multiple build commands for the images add in the iphone project ?

Hi all when i compile my project it thorws warnings like :- Multiple build commands for the .png file what does it means and how can we remove it ,Even i clean up my build xcode cache memory even than it is throwing this warning. Hw can we remove this warning ? Thanks Balraj ...

iPhone - Clicking on navigation bar's back button doesn't change view

Hi Never faced this issue before. I am using a navigation controller in my app. The app uses web services to get the data. If I go ahead 2 views and before the current view finishes loading, if I click the back button, the top bar changes as expected but the view does not. The view remains the same. This does not happen every time but...

UIMAGE - maze type 2d grid - how to address each position programatically?

I am new to iphone SDK. What I am doing is very simple. I have a simple 2d Maze game - think puzzle game that I am working on. I am not needing to use OpenGL for this. I am wanting to use UIIMAGE's. Imagine I have a wall tile (64x64 pixels) and I want to write code to duplicated this wall tile along the top and edges of the screen area- ...