xcode4

iOS 5 [UINavigationBar appearance] setBackgroundImage does not do work

天涯浪子 提交于 2019-12-19 08:09:07
问题 I created a new test iOS5 project in Xcode 4.2 Build 4D199 and tried to set the appearance of the UINavigationBar as described above, but nothing happens. The code I tried in the viewDidLoad : [[UINavigationBar appearance] setBackgroundImage:[UIImage imageNamed:@"navbar-iphone.png"] forBarMetrics:UIBarMetricsDefault]; The only way I can get it to work is to set the appearance on the instance of the UINavigationBar . Like: [self.navigationController.navigationBar setBackgroundImage:[UIImage

Auto-Increment Build Number for Multiple Targets in Xcode

时间秒杀一切 提交于 2019-12-19 07:49:40
问题 I have a "Free" and "Paid" version of my app, and I want to auto-increment both of the build numbers simultaneously, because sometimes I test with the "Free" version and sometimes I test with the "Paid" version depending on what I am doing. These are essentially the same codebase, I just have two targets with a preprocessor directive defined with the "Paid" version to unlock certain things. I am using the code in this question: Version vs build in XCode #!/bin/bash buildNumber=$(/usr/libexec

Error : Fatal: Not a git repository (or any of the parent directories): .git

放肆的年华 提交于 2019-12-19 06:29:51
问题 When I try to put images into the Resources folder of my project, I got this message : fatal: Not a git repository (or any of the parent directories): .git How can I fix that? 回答1: Had the same problem. I copied a project then tried to delete files. If you want to be able to edit the project, type git init folder in the terminal. This will re-initialize the git in your folder. 回答2: Go to Organizer->Repositories and remove the Corresponding repository. 回答3: Faced the same problem in Xcode 4.6

NSTextField with automatic NSNumberFormatter in Interface Builder

*爱你&永不变心* 提交于 2019-12-19 06:00:55
问题 I've been making iOS apps for awhile, but I'm trying my hand at MacOS development. I'm adding an NSTextField to my UI and I noticed in Xcode that one of the options in the graphical widgets is "NSTextField with NSNumberFormatter" which implies to me that I'll be able to restrict the input of the field to numbers and configure the formatter in some way. When I add the NSTextField with NSNumberFormatter to my UI, I can see it has a formatter outlet which appears to be kind of linked to an

received memory warning. level 1

二次信任 提交于 2019-12-19 04:55:20
问题 I am new to iPhone development. I am creating an application in which i need to create buttons and labels programmatically. So I am doing this in .h file @interface FirstQuizViewControlleriPad : UIViewController{ IBOutlet UIButton *startgame; UILabel *theQuestion; IBOutlet UIScrollView *scrollview; UILabel *Question; UILabel *Description; UIView *ContainerView; UILabel *Challengetext; UIImageView *img1; UIImageView *img2; UIImageView *background; IBOutlet UIButton *reviewbtn; UILabel *ans1;

How to use Media Segmenter for split video?

自古美人都是妖i 提交于 2019-12-19 04:15:18
问题 I have read many documents still very confused about HTTP Live Streaming . But i am still trying for solution.. and i have convert my video in .ts format with ffmpeg . Now i know that i have to split my video and have to create playlist with the use of mediasegmenter . But i don't know where is mediasegmenter and how to use it to split video. I am very new to this so sorry for this silly Question.. Any help would be appreciated..!! Thanks in advance..!! 回答1: Here: 35703_streamingtools_beta

XCode 4, Adding localization

孤人 提交于 2019-12-19 03:36:07
问题 I have just moved to xcode4 and boy am i confused! :) For one, in the screenshot, you could see the localizable strings, a couple of the file names changed to "null", i am wondering why and if it would effect the final product? And also, i could'nt figure out for the life of me, how do i add another localization. Previously in xcode3.x i had to right click on "Localizable Strings" and add a language, where do i do it now? Update: I have found where to add locations, but again, previously i

Sort File List in Xcode4?

浪子不回头ぞ 提交于 2019-12-19 03:24:18
问题 This was answered for XCode 3, but not XCode4. Answer for XCode3 has not gotten an answer for 4. So: Is there a way in Xcode4 to sort my list of files under say the Classes folder Alphabetically? It appears this option has disappeared. I am happy to remove this question and move to the XCode3 answer after it has been answered, if that makes folks happier. 回答1: Update: Good news, everyone! As of Xcode version 4.5, you can now sort by name or type. Select the files you want to sort and choose

How can I change a window orientation to landscape in XCode 4 Interface Builder?

六月ゝ 毕业季﹏ 提交于 2019-12-19 03:10:22
问题 I appreciate I'm probably missing something basic here, but... My iPad app will only support landscape mode, and has a MainWindow.xib Window that I'd like to work on in landscape mode in XCode 4, however the pull-down menu to change this (Simulated Metrics -> Orientation) is always grayed out. I notice that Views can be rotated just fine, it's only Windows that can't be rotated in XCode 4 using this setting. Is there a workaround for this, or do I have to put a View on top of the MainWindow

Entitlement has value not permitted by a provisioning profile error

一笑奈何 提交于 2019-12-18 19:31:35
问题 After testing my app for the past couple weeks we're finally trying to get the app submitted to the app store. Prior to submitting, I wanted to get my production push notifications set up. I went and installed my provisioning profile for production set it in my code identifiers in the XCode build area and launched the app hoping that the production push notifications would work. The first problem that I'm running into now, is that no matter what provisioning profile I select in the code