iphone-sdk-3.0

Designing iPhone application with Photoshop or any design tools

梦想的初衷 提交于 2019-12-13 12:49:39
问题 I need to know how to design new (different) user interface for iPhone with Photoshop or like that tools. I have already checked Photoshop design mockups for iPhone over the internet, but i'm sure, i don't need that, these example psd files shows original iPhone design elements. I'm just looking to how to design new user interface and how to apply to iPhone application from kick-start. Let me give an example; I need to design new tab bar and apply to my small application as well as uiview,

Why is app icon white?

▼魔方 西西 提交于 2019-12-13 12:40:24
问题 Some recent version of iOS caused my app icon to turn white. I've gone through everything in regards to images and can't find the issue. I'm running Xcode 3.2.5 with sdk 4.2. I do have an entry for "Icon files" in Info.plist with 5 keys: Item 0 myapp.png Item 1 myapp@2x.png Item 2 myapp-72.png Item 3 myapp-Small-50.png Item 4 myapp-Small.png Item 5 myapp-Small@2x.png All the above have proper dimensions. I see the image in 'Copy Bundle Resources' and also in the .app file for the simulator

Help, need example payment application for iPhone

ぐ巨炮叔叔 提交于 2019-12-13 11:05:34
问题 Please provide me any link or application which provides payment functionality on iPhone... for example - if the user wants to send mail from the app, i need to charge money for it.. Thanks for any help 回答1: Maybe following articles will help you: In App Purchase Programming Guide iPhone Tutorial – In-App Purchases Things I learned implementing my first InAppPurchase In App Purchases: A Full Walkthrough 来源: https://stackoverflow.com/questions/4161770/help-need-example-payment-application-for

Skimming another website for data to display in iPhone App (will apple approve app? ) [closed]

无人久伴 提交于 2019-12-13 10:29:53
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I am thinking of putting together an app that will be pulling data from a very popular website. I have already looked at search and responses from the site and believe it can be done. The only one question I have is, will apple have a problem with me doing this? The website more than likely will NOT give me

How do I get the users location latitude and longitude?

对着背影说爱祢 提交于 2019-12-13 09:39:02
问题 I need to access the users location in this method contained in the mainViewController -(void)loadAnnotations{ [mapView removeAnnotations:mapView.annotations]; CLLocationCoordinate2D workingCoordinate; workingCoordinate.latitude= //here i need the users latitude workingCoordinate.longitude= //here i need the users longitude NSLog(@" this is %@", workingCoordinate.latitude); iProspectLiteAnnotation *tempMine = [[iProspectLiteAnnotation alloc] initWithCoordinate:workingCoordinate]; [tempMine

How to post images in facebook in iphone app?

寵の児 提交于 2019-12-13 08:41:44
问题 could anyone pls help me to post fotos on facebook using objective c for iphone app.i tried it but its getting terminated when i check with iphone.its working properly in simulator.following is my code i used to post in fb.i use graph api for developing my app. -(void)fbGraphCallback:(id)sender { if ((fbGraph.accessToken == nil) || ([fbGraph.accessToken length] == 0)) { NSLog(@"You pressed the 'cancel' or 'Dont Allow' button, you are NOT logged into Facebook...I require you to be logged in &

change image of uibutton with other image

烂漫一生 提交于 2019-12-13 06:31:59
问题 This way i have created my custom button and set the image.I have set the image for nonselectedImage and selectedImage above in load view.When the view is loaded the nonselected image is visible. When i press the button the event is called but it is not able to change the image set in the action method. starImageBtn5 = [[UIButton buttonWithType:UIButtonTypeCustom] retain]; starImageBtn5.frame = CGRectMake(231.0, 67.0, 20.0, 20.0); [starImageBtn5 setBackgroundImage:nonSelectedImage forState

Problem programmatically accessing the iTunes library

无人久伴 提交于 2019-12-13 05:45:53
问题 I built an app that must access the iTunes library. I used MPMediaQuer to retrieve songs from the library as in the following. MPMediaQuery *media = [[MPMediaQuery alloc]init]; NSArray *arr = [media items]; for(MPMediaItem *song in arr) { //To print songs title NSString *title = [song valueForProperty:MPMediaItemPropertyTitle]; NSLog(@"%@", title); } But nothing printed! And I tried to print the count of the arr array and the result is 0 as in the following. NSLog(@"%D",[arr count]); And I'm

iPhone Programming In Call Status Bar

和自甴很熟 提交于 2019-12-13 05:36:44
问题 When I test my application on an in call situation, the status bar push down my view or app. Is there anyway to have the status bar hang over my view. What is the most common solution to this problem. 回答1: When the in-call status bar appears, your application's window adjusts its direct subviews' frames: their frame.size.height becomes 20 points less, and their frame.origin.y becomes 20 points larger. Typically, your window's only direct subview is your root view. So the root view "yields"

Why can't I get this SQLite code to load the proper data for my detail view?

点点圈 提交于 2019-12-13 04:18:00
问题 - (void) hydrateDetailViewData { //if detail view is hydrated then do not get it from database if(isDetailViewHydrated) return; if(detailStmt == nil) { const char *sql = "select snapTitle, snapDesc from Snap where snapID =?"; if(sqlite3_prepare_v2(database, sql, -1, &detailStmt, NULL) != SQLITE_OK) NSAssert1(0, @"Error while creating detail view statement. '%s'", sqlite3_errmsg(database)); NSLog(@"SQLite= %d", sqlite3_step(detailStmt)); } if (sqlite3_step(detailStmt) == SQLITE_ROW)//execute