iphone

How do I make a button play sounds in a certain order using an array?

I'm coding in Objective-C for the iPhone and I am trying create an array that plays a series of sounds. For example the first time I press the button I want it play sound "0.wav", but the second time I want it to play "1.wav", then "2.wav", "3.wav", etc. Then when I've played a total of 14 sounds (up to "13.wav") I want the loop to star...

How do I have a Tableview go to another tableview.

Right now I have an indexed tableview that goes to a detail view but i want it to go to another tableview then a detail view. Any thoughts? ...

How to access fetched property in Objective-C 2.0 using Core data.

I'm new to IPhone development and I'm currently trying my hand at Core Data. I have a couple entities that I've defined in my model. In one entity I have a fetched property. When I generate the Objective-C source files from my model, my entity that I defined with the fetched property does not have a property defined for the fetched prope...

Detecting bad jpeg images

The question on validating jpegs on network transfer is very helpful. Could we take this question one step further? What if the image data is incomplete or corrupt from the server? The complete transport works, the MIME type is image/jpeg, the UIImage is constructed and non-nil but the renderer discovers inconsistencies in the data and ...

iPhone Dev - NSString Creation

I'm really confused with NSStrings. Like when should I do NSString *aString = @"Hello"; of should it be: NSString *aString = [[NSString alloc] initWithString:@"Hello"]; But then its different when you're assigning a value to an NSString property isn't it? Can someone clear this up for me? Thanks!! ...

Double star argument in objective-c method?

NSURLResponse *response =[[NSURLResponse alloc] initWithURL:requestingURL MIMEType:@"text/xml" expectedContentLength:-1 textEncodingName:nil]; webData = [NSURLConnection sendSynchronousRequest:theRequest ...

iPhone Dev - Create UIButton Manually

Hi, I'm learning how to develop on the iPhone, I bought a book called Beginning iPhone 3 development Exploring the SDK. After I bit I decided to ditch Interface Builder. I still design all my views in IB, but I write It all in code and only use the nib file to get the controls' frames. So now I need to make a UIButton, and the documenta...

CoverStory for iPhone testing?

I'm trying unsuccessfully to get CoverStory working in an iPhone project. Unfortunately XCode build settings and gcc flags are a big mystery to me. :( I've managed to generate .gcno files but the .gcda files don't show. I've added -lgcov as an other linker flag, set both the GCC_GENERATE_TEST_COVERAGE_FILES and GCC_INSTRUMENT_PROGRAM_FLO...

IPhone Dev: setHidesBackButton hides the button but leave it working..!

Hi everyone... I don´t know if it was supposing to happen, but when I set: [self.navigationItem setHidesBackButton:YES animated:NO]; or self.navigationItem.hidesBackButton=YES; it works, the button is hidden... BUT if I press the area where the button was supposed to be, the "invisible" button works..! This is correct..? If I reall...

iPhone Development - Release an autoreleased object

What happens if I release an autoreleased object? Its an autoreleased UIButton I want to release and the only way to create a UIButton is to use the convinience method buttonWithType:. Will it be released from memory like a normal object? Or should I just let the autoreleasepool take care of it? I wouldn't have made it autoreleased in th...

What's the point of this in objective-c

SomeObject *temp = [[SomeObject alloc] init] self.theObject = temp; [temp release]; Why is it always done that way? Why not self.theObject = [[SomeObject alloc] init]; ...

UITableView and a UITextField that is always visible

Hi all! I want to create an application which combines a chat feature. My question is this: how can I have a UITextField that is always visible in the same view as a UITableView? The obvious solution would be to create my own UIView having a UITableView and a UITextField below it, however the UITableViewController doesn't seem to like...

Navigation bar (iphone)

Hi, I have created email functionality view in which everything is working fine, but the color of a navigation bar item is not changing like other views. I have used below code for navigation color but 1 navigation bar button item is left with default color. How do I change it? controller.navigationBar.barStyle = UIBarStyleBlack; ...

There is any tool for UI Unit Testing iPhone application(Not SenTestCase)

Hi EveryOne, I am looking for any tool or approach using which I can do UI unit test for iPhone application, I am aware of SenTestCase framework however which is used to do that testing for code I am looking for UI unit testing. Any suggestion will be great help to me. Thanks in advance. Regards, Satish. ...

how to select different parts of an image

there is a .png image displaying human body skeleton.My query is that how to select diffrent parts of the skeleton like hand,foot,head etc in the image and then after selection control moves into another view which displays information about that selected part. ...

Rotating a cube (using opengl - Iphone)

I am writing iphone application where in I need to rotate cube. The rotation on vertical and horizontal axis is working fine. Also, rotating cube from bottom right to top left and from top left to bottom right is working fine.(I am using glrotateef(angle, 1.0, 1.0, 0.0) to rotate from top left to bottom right). The issue here is, I want...

UITableviewcell problem

I have uiviewcontroller classes in that class i addded uitableview ...I can able to reload data .But some times my tableview cell is not visible .... Can anyone help me? Thanks in advance..... ...

Displaying a "Loading..." screen in a UITableView like the AppStore App...

the App Store app and fairly a lot many apps display a view that says "Loading.." while the content is being retrieved. How can we do this? Should I remove the UITableView and call addSubView and then once the data is available, add the tableview back? Or is there any other shortcut? If my question is not clear, please see this image.....

Online drawing applications

Does anybody know about Multiplayer iphone games that implement drawing and network features which allow players to guess what the opponents are drawing (like Quick Draw App.)? Please help me with source-code or any documentation. ...

How to assign copy of object back to original reference?

I have application with following design: Table View that lists documents. And ViewController where document is edited. When editing the document I want to use a copy of object so in case user press Cancel I just throw away the copy. If user selected Save I copy modified document to original. (I can't have all document's fields as prope...