iphone

Rebuild a download App with a little Code I've found

Hello Guys, I'm searching for a Code, which can Download MP3 Files via Webview to a Folder on my Device. These Files should be listed on a Second tab, where you can delete them, if you want. After a long while of searching I've found this: http://pastie.org/pastes/833713 It looks, like an IPA Download Script and I want to use it, but ...

Skip UIImagePickerController Preview View?

I'm using UIImagePickerController to allow my user to select a video from the asset library. When the UIImagePickerController is initially displayed, it shows thumbnails for the various movies that have been recorded. Once the user selects a movie, it displays a "preview" view which allows them to playback and potentially edit the se...

Animate between two states of a view, using custom animation

Hi, I would like to animate between two states of a view. Say, for example, I have a view with a label and when I change the text of the label an animation renders that change as a page flipping. Now you can of course do this with a [UIView setAnimationTransition:forView:cache:]: - (IBAction)nextPage { [UIView beginAnimation:nil...

Linking the Developer Page at the appStore from an iPhone App

Hi. So I know how to open an app page on the appStore from within my iPhone app. Is there a way to open my company's page? On iTunes on my mac I can do that, but using that URL in the iPhone I can't (or I'm not doing it right). Thanks in advance. ...

how to search nsmutable array in objective C

Hi all, can any body tell me how to search NSMutable Arry in which objects are stored from xml feed i have the following code - (void) searchTableView { NSString *searchText = searchBar.text; NSMutableArray *searchArray = [[NSMutableArray alloc] init]; //blog entries is the nsmutable array in which objects are stored from RSS feed f...

addObserver questions, try to check if data is loaded

I have a ViewController that initializes another class that loads data into a mutable array and saves it as a property on itself. here is my ViewController init code: -(id) initWithCollectionID:(NSString *)aCollectionID { if (self = [super init]){ collectionID=aCollectionID; dataSource = [[CollectionListDataSource...

iPhone: Reading App Executable as a File

I have tried to read the main application via several methodes but i got nothing back Using NSFileHandle it returns nothing with the folowing code : NSFilemanager *filemanager = [ filemanager defaultmanager ] ; NSString *myfile = [ [ NSBundle mainBundle ] bundlePath ] ; if ( [ filemanager isReadableFileAtPath:myfile ] ) NS...

iPad VGA output - how to remove the extra UIScreen

I have the need to display a specific view on a separate screen, similar to how Keynotes handles presentation mode. I've managed this successfully by checking how many screens are available, and then adding the view I want displayed as a subview of the second window. However, if I dismiss the parent view that handles the creation of th...

iPhone-Simulator Cropper for iPad?

Has anyone been able to get iPhone-Simulator Cropper or a similar tool working for the iPad? The website claims that it works with the iPad, but when I try to use it I get an error that the screen is the wrong size. If not iPhone-Simulator Cropper, is there another tool that does the same thing? ...

how to show thumbnil image from youtube rss feed in iphone

I tried To Parse the response of the of the youtube RSS feed and displayed it in tableview... I works fine except i can't fetch URL for the thumbnil image of the video from rss... It comes in description tag and inside description tag there is a whole div (html)... is there any simpler way example tutorial.....to fetch the thumbnil imag...

Get textField.text from custom UITableViewCell

Hi, I wrote a Special UITableViewCell. Now I need to get the text out of a textfield in - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { CustomCell *custumCell = [tableView cellForRowAtIndexPath:indexPath]; //warning: incompatible Objective-C types initializing 'struct UITableViewCell *...

problem in animation for opening back page in pdf in iphone

I am able to do the animation when the user flips to next page but i am not able to get to show the animation when user got to the previous page in pdf in iphone . i have loaded the pdf into the uiview. Thanks in advance ...

Cancel UILocalNotification

Hello guys! I have a problem with my UILocalNotification. I am scheduling the notification with my method. - (void) sendNewNoteLocalReminder:(NSDate *)date alrt:(NSString *)title{ // some code ... UILocalNotification *localNotif = [[UILocalNotification alloc] init]; if (localNotif == nil) return; localNotif.fireDate = i...

MPMoviePlayerController + Movie get pause after it start buffering the data

Hello All, In my application I am using MPMoviePlayerController to play movie from URL. initially for 2-4 secs it play well , but after that for each buffering it pauses the movie and Manually I need to play though .... shouldAutoplay = YES; is set I have debugged with loadstate (iDemoPlayer.loadState ) it is showing value 5 ( no re...

How to handle setDelegate: when using multipe threads

Hi all, I've come across an issue with using a third party library, and am not sure what the common pattern to solve it is. I'm using the asi-http-request class, which fetches http objects asynchronously using a thread. In my objects dealloc() method, I do [request setDelegate:nil]; [request release]; However the delegate is someti...

XML using NSDictionary

Hello, Is this possible to generate xml file while using NSDictionary . i know this functionality available in ASP.NET but i am not aware about Objective-C.. if you have any idea regarding this. ...

Problem with Tiny URL

Hi Guys! I am developing Twitter API to my application. In my app, I want to display the tiny url with parsed xml link in UITexField as dynamically. statically, I could able to display tiny url in UITextField, but dynamically I am not able to display the tiny url. Please help me! Code: statically(Working fine), NSURL *url = [NSURL UR...

Want to play video but there´s only sound, no visible content..

Hi, i have a tabbar based application with 2 tabs. One to show images and the other to show videos. If i click on the video tab, different thumbnails are showing up. If i click on one of these images, i would like to push that videoviewController to play a video in another navigation view - if i turn the iphone around, it will play ful...

NSPredicate issue

Hello everyone, I have 2 tables, 1 table is called table car and 2nd is called history. A car can have many histories so basically a history will have a foreign key carid which represents the car id. I am trying to extract all the history that is associated with the car but unfortunately, it keeps returning me every single history. ...

trying to obtain an objects title variable gives unrecognized selector sent to instance

I have an object which holds a title and an indexReference. I save the object to an array and that works correctly. I then try to load from the array and populate the tableview. I use this code. //fill it with contents SavedFav *temp = [tableViewData objectAtIndex:indexPath.row]; cell.textLabel.text = temp.title; I then get an err...