Let's say I'm displaying a webpage inside of native iPhone app called FooBar using UIWebView. I then want to display the name of the Application (in this case FooBar) I'm running inside the webpage dynamically (Hello Foobar). Is there a way through JavaScript (or any other mechanism) to get the App Name from within the HTML?
To think ...
hi,
I want to do a certain task if i hold and press the UIButton without release my finger, like showing some animation.so how can I execute that task when my finger is holding or pressing the UIButton?
Thanks
...
I'm parsing some HTML with NSXMLParser and it hits a parser error anytime it encounters an ampersand. I could filter out ampersands before I parse it, but I'd rather parse everything that's there.
It's giving me error 68, NSXMLParserNAMERequiredError: Name is required.
My best guess is that it's a character set issue. I'm a little fuz...
I am using the MediaPlayer framework to play a movie on the iPhone. There is a notification:-
myMovieFinishedCallback
to capture the end of play, but there doesn't appear to be any way to distinguish between the player coming to the end of the movie, and the user pressing 'Done' to terminate mid-play.
Is it possible to tell the cond...
How do I add a UIActivityIndicatorView spinner circle into a UIBarButton? So that when a user taps on one of those buttons on the navigation bar, they see a spinner while the loading takes place?
Thanks.
...
I am attempting to programmatically add buttons to my screen while looping through an array. The code I've posted below works just fine in the simulator (and executes without error on the phone), however, the button is not added to the screen on the phone. Any suggestions as to where I've gone wrong?
// loop through missions, dropping...
I am running an END TRANSACTION on my database and occasionally I get error #1 that "cannot commit - no transaction is active"
Is there a way to determine if a transaction is active before trying a commit? I have been tracking my "BEGIN TRANSACTIONS" by hand but I feel there is a better way.
I am using the C API
...
Hi,
How can I add multiple action in a single UIButton? Life for example,
[btn addTarget:self action:@selector(method1) forControlEvents:UIControlEventTouchUpInside];
[btn addTarget:self action:@selector(method2) forControlEvents:UIControlEventTouchDown];
Thanks
...
I am trying to clean up my code from memory leaks and I am having problems with the 'release' method.
Here is my code:
NSArray *dict = [[NSArray alloc] initWithContentsOfURL:url];
if (dict == nil) {
UIAlertView *alert = [[UIAlertView alloc]
initWithTitle:@"Error"
message:@"Cannot retrieve content. Please try again la...
Hi,
how can i select the video from photo folder or video folder and its file name which must be in iphone locally through programming?any help pls?
is there anyway to check the video is already in iphone locally, when i get file name of that
video from the internet? any help please?
...
Hello all,
i am working on an application that displays read-only data i am shipping.
it is more of a book.
It is easy with SQLite but i am not satisfied with the performance and trying to use Core Data.
The issue is with pre-filling Core Data is that it is a hard process.
My question is:
Is it possible to build an assistant iphone a...
I am working on a database application using the Core Data framework. In this application I need to display how much data the application currently is using on the iPhone. Is there any way to do this?
...
i have a uitabarcontroller in which 3 view controller are added .in the 3rd tab i have a picker view which selects some settings based on which data in the 2nd tab changes.When i migrate into 2nd tab the data is not getting refreshed as i have the same old data.How can i refresh the data in the 2nd tab.
NSMutableArray *localControllersA...
I'm pulling in a UIImage from an NSURL (as data) and I need to set the frame based on the size of the image. However, the image.size.width always comes back as 0, and image.size.height comes back as a large number (my guess is the total number of bytes in the image). Is there any way to get the proper values after an image has been dow...
Hi,
I want to know how to write a program in Objective-C language in XCode for iPhone OS, i want to call an application(Ex: hello world) from another application(its a calling application, whose functionality is just to call hello world application). how to give the path of hello world in the calling application and where to place my he...
Hi,
i have NSobject page inwhich i have method to reload table
like
MainPageTable *m = [[ MainPageTable alloc] init];
[m.tableView reloadData];
[m release];
The following is called:
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
but this is not:
- (UITableViewCell *)tableView:(UITableVie...
How can I detect a movie orientation (portrait or landscape) or width and height of it?
For example, when using UIImagePickerController:
- (void)imagePickerController:(UIImagePickerController*)picker didFinishPickingMediaWithInfo:(NSDictionary*)info {
if ([[info valueForKey:UIImagePickerControllerMediaType] isEqualToString:(NSString...
I am using a slider in my app. It has the default color black I want to change it to brown.
I followed the 'Changing sliders appearance in SDK help'
I used the code
NSString *path = [[NSBundle mainBundle] pathForResource:@"sliderBrown"
ofType:@"png"];
UIImage *minimumTrackImg = [[UIImag...
I want to make an iPhone application which fetches XLS data from mail attachments and adds it into the iPhone AddressBook. I am new to the iPhone SDK. Can anyone help me?
...
I have what I thought would be a simple task.
I have a sample project that will let a user click a button to pull up the AddressBook user interface within a view. From what I see most of the work is done here:
-(IBAction) checkOutBookid)sender
{
ABPeoplePickerNavigationController *peoplePicker=[[ABPeoplePickerNavigationController alloc]...