iphone

[iPhone] How to do tabBar.title != navBar.title ?

I have tab bar, and navigation bar in it. In navigation bar I have table view. The problem is, when I set the title to the tab bar in IB, and next set the title in table view, tab bar title is changing to title from table view, and I have the same title in navigation bar and tab bar, but I want have different titles there. How to set t...

extract data from NSMutableArray

In my application i parse a xml from which I get a list of items (hotels and restaurants) that i put into array "listElements"; I need to get from this array, another array that will contain only the particular elements (hotels only) and then I need to get from this array, three array that will contain hotels according to stars(array5sta...

get copied data from UIpasteboard

hi, i have copied image from UIwebView using clipboard and i want to mail it.For this,I use general pasteboard to get data,but there is a problem in retrieving data.When i check the pasteboard current data,it says the it has Apple Web Archive pasteboard type data,how to read this.here is my code of retriving text. UIPasteboard* pasteboa...

iPhone - Multiple instances of an application running?

Hi there, When i start my app for the first time after installing it and exit before the splash screen disappears, from then on launching from the multitasking menu it comes up with a black screen. If I click on it from the home screen it loads fine but every time I try from the multitasking menu it is a black screen until I terminate i...

Why does Javascript run so slow on iPhone?

I've been researching writing an app for iPhone. I really like the look of PhoneGap which basically allows you to contain a webpage in an app. My skills are primarially in HTML/Javascript so this tool allows me to make the most of my skills without having to spend many hours learning how to write an app natively for the iPhone. I've b...

iPhone - How to preload a local file in a UIWebView?

Is it possible to preload content of a local file with embedded images for a UIWebView? This is how I'm loading the data inside the UIWebView: NSString *urlString = [[NSBundle mainBundle] pathForResource:@"info" ofType:@"html"]; NSString *htmlContent = [NSString stringWithContentsOfFile:urlString encoding:NSUTF8StringEncoding error:ni...

UIImagePickerController and the need to save the UIImage asap vs. exploiting the file backing

I've read uiimagepickercontroller uiimage memory and more and other relevant questions, but I can't get my head around one thing, and I wonder if there are people around here with experience on this particular aspect. In my app I let the user select an image from his library, ultimately resulting in an upload. (An interesting thing here...

pinch gesture in iphone sdk

hi i want to know how i detect the font size of text when i use pinch gesture in iphone sdk ...

integrating twitter in my iphone application

Hi all, i am integrating twitter in my iphone music application.i.e when a user clicks a song and then he click on the twitter tab the login page of twitter should be opened and when he enters his username and password and then he clicks on the post button the song name and the comment he has entered in the textview should be posted to h...

MKOverlayView tranform

i have a MKOverlayView with custom drawings. i have to rotate those view to different degrees. i used transform property for rotating the view. its working in the ios 4.0 but its not working in the ios 4.1. What is the reason? how can i rotate the Overlay view? here is the code... - (MKOverlayView *)mapView:(MKMapView *)mapView viewFo...

Stop iPhone loading compressed images

When I view a JPEG image on my iPhone, it apparently load a compressed version of the image (pressumably to save network bandwidth). It has heavy artefacting and makes much of the text on the jpeg unreadable. I know the answer to this question is probably no, but is there any way to force it to load the original image served by the web...

Pass messages between two independent UIViews

What is the easiest way to pass information between UIViews? If i have 2 standalone views that push and pop from the navigation bar and I want from one UIview to do some logic when a button pressed on the second UIview?? Is the right way is to use delegates? or is there a simple way with the interface builder? I know that I cannot drag ...

UITabBar funcionality without UITabBarController

Hi I have this problem, I've got a navigation-based application, and on the one of the detail view i need to have UITabBar, which will display some UITableViews. Since apple documentation says "you should never add a tab bar controller to a navigation controller" it make quite a problem, i've found this sample: link text, it's working,...

NSFetchedResultsController section ordering

Hi everyone, I have a model like this one: I want to fetch the items in a grouped table view with the help of a NSFetchedResultsController where the Category.titles are the section titles, ordered with the help of Category.sortOrder. I tried to implement a compare- (which compares the sortOrder property) and description-method (whi...

iPhone App Localization - English problems?

Hey everyone, I have an app that I am translating to a bunch of different languages. The problem is that the app will have a few different values in Australia than will in New Zealand, which are both English speaking countries. I have created an en_AU and an en_NZ language file, but they're both using the standard English file. I delet...

application crashes

Hi my application gets crashes by getting this error!!! :( objc[12723]: FREED(id): message clientID sent to freed object=0x48a23e0 may i know the reason for this!! Thanks ...

How to connect to WiFi on iPhone programatically? (LEAP Protocol)

I need to do an app for my school to connect to the Wi-Fi Network. They use a LEAP protocol and I just need to send a NSURLRequest to a PHP file. Anyone has any ideas? ...

NSURLConnection get URL

Hi, how i get the URL inside the following method ?? - (void)connectionDidFinishLoading:(NSURLConnection*)theConnection ...

How to have multiple apps - one Core Data?

I’m an experienced developer, but new to Mac. I just don’t want to go down one path only to find out that I made some fundamental error or incorrect assumption later on. I want to ultimately build and sell an iPhone app using Core Data. The app will be free with content available through in-app purchase. Here is what I want to be able ...

Set Orientation to Portrait on iPhone

Hi, I have an application that consists of a login, 3 tables, and then an image. You can rotate the image to landscape mode but what I want to be able to do is when the 'back' button is pushed and the app returns to the previous screen, I was the app to automatically rotate to give a portrait view. Is there any way of doing this? ...