iphone-sdk-3.0

Personal iPhone application without paying?

空扰寡人 提交于 2019-11-29 11:07:12
I want to develop a little iPhone application, just for my personal needs. I don't want to sell it or give it to anybody as it will not be useful to anybody. Can I have this application on my iPod/iPhone, without having to pay/suscribe/be on the Apple store ? You need to pay the $99 for the iPhone Developer Program in order to be able to install your application onto the iPhone/iPod. Jonathan. You can, by Jailbreaking your iPhone and then installing the AppSync program from Cydia. Then you can either build your app as a release and drag it into iTunes and sync your phone or change some

splash (launch image) in landscape mode?

时光怂恿深爱的人放手 提交于 2019-11-29 10:28:25
I am developing a game which works only in landscape mode. When I import a launch image (Default.png) into my xcode proj and run it, the image appears in portrait mode and then the view starts in landscape mode. How can I make my splash/launch image be displayed in landscape mode only? First thing is no one is gonna know from outside the application that application is gonna run in portrait or landscape. If at all you still want to view the splash screen in landscape mode you have to design the image in such a way as we cannot change the behaviour of the splash screen. Instead of designing the

How can i get minimum and maximum latitude and longitude using current location and radius?

我与影子孤独终老i 提交于 2019-11-29 10:28:22
问题 I want Minimum and Maximum Latitude and Longitude Using Current Location.Suppose i have give the area of 20km so using that latitude and Longitude i want Maximum latitude and Longitude and Minimum latitude and Longitude also want all latitude and Longitude in between this so how can i get it.How can i use of radius in it.Please help me.Thanks in Advance... 回答1: you can manually calculate it... I don't know if any other way exist 1° latitude = 69.047 statute miles = 60 nautical miles = 111.12

iPhone/iPad data usage tracking

落花浮王杯 提交于 2019-11-29 09:47:59
Just wanted to ask the community a quick question. Out of curiosity, would anyone have an idea how the iPhone App "DataMan" and "Data Usage" are pulling data readings of your personal cellular data usage? I've check the web high and low for possible answers and all so far has been dead ends. How could they have gotten their Apps to be Apple approved? Any help or advice would be great! One way to do this would be to install a configuration profile with the proper APN settings which will route all the network traffic through a proxy server. For WiFi, you can set the proxy in the network settings

How to get ISOCurrencyCode from a ISOCountryCode in iphone sdk?

断了今生、忘了曾经 提交于 2019-11-29 09:23:27
问题 I have the ISOCountryCode avaliable and now i want to derive the currencyCode of this country from the ISOCountryCode. How can i achieve that? NSString *countryCode = < get from someother view>; NSString *currencyCode = ?; I receive this country code from some other view on runtime? 回答1: You will need to use NSLocale. To retrieve the currency code from a specific country code: NSString *countryCode = @"US"; NSDictionary *components = [NSDictionary dictionaryWithObject:countryCode forKey

iPhone UISearchBar & keyboardAppearance

徘徊边缘 提交于 2019-11-29 09:00:44
问题 When the keyboard appears, I want to set the keyboardAppearance = UIKeyboardAppearanceAlert I've checked the documentation and it looks like you can only change the keyboardType. Can this be done without violating any of Apple's private API's ? 回答1: The best way that I found to do this, if you want to do it throughout your app, is to use Appearance on UITextField. Put this in your AppDelegate on launch. [[UITextField appearance] setKeyboardAppearance:UIKeyboardAppearanceDark]; 回答2: This

Connect iPhone App to PostgreSQL Using Libpq

落花浮王杯 提交于 2019-11-29 08:55:26
I need to create an application for the iPhone that will connect to a PostgreSQL 8.4 database using libpq. The problem is I can't get a simple iPhone that links to libpq to compile. I am however able to get the equivalent application that is a regular Mac desktop app to compile and connect to PostgreSQL without any issues. I'm on Xcode 3.2 running on Snow Leopard. I'm building libpq for both arm and for x86_84. The arm build is for the real iPhone and the x86_64 is for the iPhone simulator to use. I then create a fat binary that contains both files and end up with a file named libpq. This file

iPhone CoreData join

徘徊边缘 提交于 2019-11-29 08:02:24
this is my core data model: I'm trying to get all LanguageEntries from a database for a given category.categoryName and languageset.languageSetName e.g. NSFetchRequest* fetchRequest = [[NSFetchRequest alloc] init]; NSEntityDescription *entity = [NSEntityDescription entityForName:@"LanguageEntry" inManagedObjectContext:del.managedObjectContext]; [fetchRequest setEntity:entity]; NSString* predicateString = [NSString stringWithFormat:@"Category.categoryName = %@ AND LanguageSet.languageSetName = %@", @"Food", @"English####Spanish"]; fetchRequest.predicate = [NSPredicate predicateWithFormat

UITableView does not respond to scrolling the first time it's loaded

巧了我就是萌 提交于 2019-11-29 07:50:31
I have found that the first time a UITableView loads, it does not respond to scrolling touches -- if it does not have more rows than fit on the screen. If I close the view, then reopen the same object -- it will now respond to touches -- even though it contains the same number of rows. I am not doing anything more than responding to the UITableViewDataSource methods for the number of rows, and generating the rows themselves. I am reloading the table every time the view appears. Can anyone explain such behavior? I am creating the cells like so: - (UITableViewCell *)tableView:(UITableView *

Using a UIWebView, can I use a custom font?

五迷三道 提交于 2019-11-29 07:43:33
问题 I've seen all the talk on the web about the difficulty of using a custom font in iPhone OS. Is it possible, to load a font from within my bundle into the UIWebView component? EDIT: I saw it in the app called "Omer" by "Rusty Brick"... It seems to be a web view, because I see a delay and during the loading delay the custom area is white. What other component could this have been? EDIT2: I contacted Rusty Brick. They told me which font it was. A standard font. 回答1: It is possible to load custom