iphone

How to avoid "Unable to read symbols for..." warning playing local UIWebView HTML files?

Hello everyone, I have a UIWebView that loads local HTML files. In one of those files/pages I have a video file embedded (with <video> tag) that plays correctly in both simulator and iPad, but in iPad I get this annoying warning message: warning: Unable to read symbols for "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.2...

Programatically remove selection in UIWebView

Is there a way to programatically remove the selection box of text which the user has selection in a UIWebView? ...

randomising questions

i am wondering how i can randomise the order of questions when i have question as an NSInteger i am using the following line of code to try and display my arc4random however it crashes and it doesnt load properly. question = arc4random() %6 +1; is theere a solution to get the integer question to be randomized in its order? thanks...

iPhone - How to convert aiff audio files into aac?

I'm developing an iphone app that records audio, right now it records aiff files, I need to convert these files to aac... any idea how to do this? ...

iPhone upload in new thread

Hi All, I've been trying to implement a background thread in my app to do the long haul, hard graft uploading stuff. I'm using the FBConnect SDK and it has been working perfectly but I would like to keep the GUI side working smoothly and at the moment there is a noticeable pause in the app before it starts the upload. What happens at ...

iphone sdk integer to network short and vice versa

Is there a way to convert an integer into a network short integer on the iphone? Also, how do I convert a network short to a host short. In c, it's htons and ntohs Thanks ...

What is the idea behind creating levels for iPhone games?

I want to know how different levels are made in iPhone games like "AngryBirds". Do they have some large array which has locations where to put the brick or something? How do those kinds of levels are developed? ...

iPhone - Problem switching scenes in cocos2d (EXC_BAD_ACCESS)

My AppDelegate makes the following call to start my game scene: [[CCDirector sharedDirector] replaceScene: [HelloWorld sceneWithResponseDelegate:self]]; When the scene is finished it adds a MenuLayer (which is a singleton): MenuLayer *menu = [MenuLayer layerWithLevel:@"forest" score:score responseDelegate:mainMenu]; [[[CCDirector sha...

Can't attach CSV file to iPhone Mail application

The code below works perfectly to send text (.txt) attachments via the mail application (textfile.csv needs to be modified everywhere with textfile.txt). However when I try to attach csv files it does not work at all (the mail application opens up showing the icon of the textfile.csv but when the mail arrives it has no attachment (nor th...

Unit tests no longer working after XCode upgrade from 3.2.3 to 3.2.4

Hi everyone, I have just updated my XCode to 3.2.4 and it turns out my unit tests are no longer working. I have configured a target and executable following the instructions from Scott Densmore so that I'm able to debug my tests. I did change the Base SDK to iOS4.1 for my test target (LogicTests) and updated the path to the otest scrip...

Error when using UIActionSheet and Three20

In a project I'm using Three20 for some of the code (not using the TTNavigator or some advanced features, only a few things). When I try to create an UIActionSheet, I get an EXC_BAD_ACCESS error. The code that triggers it is as follows (on a UIViewController) - (void)viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; ...

iPhone SDK 4 - How to programmatically detect volume hardware button press?

How would you detect if the user presses the volumen hardware bottons and prevent default behaviour? Thanks a lot. ...

Load local website from the Documents folder in iPhone using phonegap?

Hi, We're making an app using phonegap to load it locally. Everything is working fine, the problem is that our manager asked us to find a way of update the whole site (if necesary) from internet and replace the old one. So far I created one method to do it when the website is copied to the Documents folder but I found that the 'www' sit...

Navigation Controller that doesn't use the whole screen

I have a navigation controller which I don't want to use up the whole screen. In particular, I want to put a logo image in a bar at the top of the screen. Unfortunately, the navigation controller doesn't seem to be designed this way. In interface builder, I can't make it take up part of a screen. How would you achieve the effect of a log...

Section index in table view

Hi, I am implementing a table index view and amazed to see how my table indexes are working even without implementing: - (NSInteger)tableView:(UITableView *)tableView sectionForSectionIndexTitle:(NSString *)title atIndex:(NSInteger)index method. I have only implemented: - (NSArray *)sectionIndexTitlesForTableView:(UITableView *)tab...

How do I convert an element inside another element to upper case?

Hello, I have an XML file taht looks like this: .. Smith ... Johnson ... ... and I need to convert the last name of the dependent to upper case. I wrote this XSLT and it converts last name of the dependent to the last name of the personal info in upper case. So it converts it to SMITH and I want it to be conv...

UIDatePicker return value data type question

I want to pass back data from a UIDatePicker that is setup like this: UIDatePicker *pickerView = [[UIDatePicker alloc] init]; pickerView.datePickerMode = UIDatePickerModeCountDownTimer; The picker mode is set to be the count down timer. What type of data type do I need to pass back to the delegate? I was thinking it would be somethi...

Objective C - delegation question ???

I need to create a class that gets a delegate does some calculation and then calls the delegate. Where am i suppose to release the object I allocated? Is it possible to init the MyClass object without allocating it, so that way I don't have to release it. What is the best practice to do such a thing? (I am trying to create a web servic...

UIScrollView and scrollRectToVisible:animated:

I have a paging UIScrollView that pages through multiple full screen images. I am tiling the pages, queuing and dequeuing the UIViews dynamically as the scroll view pages through the collection of images, based on Apple example code. I have a toolbar button the calls scrollRectToVisible:animated: to move the UIScrollView to a specific i...

IPhone UIImagepicker with camera showing camera roll thumbnail like default camera app?

Hello, im working in iphone's camera app, using UIImagePicker to launch the camera. Everything goes well, just a need to use the default controls showed in the camera app in iphone(little thumbnail from the last pic in camera roll and take photo buttons) and its animation(take and send the picture to the left bottom thumbnail), not defau...