xcode4

How can I check if a reuse identifier has been registered with a UITableView already?

纵饮孤独 提交于 2019-12-10 12:51:40
问题 In iOS apps, we have to register nib files with our table view before we can use UITableView#dequeueReusableCellWithIdentifier . Example: static NSString *myReuseIdentifier = @"MyReuseIdentifier"; UINib *cellNib = [UINib nibWithNibName:myReuseIdentifier bundle:nil]; [self.tableView registerNib:cellNib forCellReuseIdentifier:myReuseIdentifier]; Is there a way to check if a Nib has already been registered with a UITableView? I have a custom cell that I use in various tables across several

Is there support for git rebasing in Xcode?

折月煮酒 提交于 2019-12-10 12:50:34
问题 Can one rebase to integrate changes from one branch to another from within Xcode? I know Xcode supports merge but I couldn't find anything for rebasing. 回答1: It does not since it tries to provide an abstraction over the version control system in use. If want a Mac GUI for git you could use gitx or sourcetree 来源: https://stackoverflow.com/questions/8218233/is-there-support-for-git-rebasing-in-xcode

Xcode 4 stuck on “Scanning for working copies”

北城以北 提交于 2019-12-10 12:46:26
问题 I just archived and submitted a project. When I go back to open the project it hangs on "scanning for working copies." I can navigate around but am unable to view the project files. 回答1: It is really just a linking problem. Select your project and make sure you have 'Identity and Type' open. This is in the right side Editor bar(toggle open and closed with 'View' button). You can change your Location and Full Path there. You just need to check that your project is linked to the correct

Xcode 4 Version Editor: ignore whitespace

試著忘記壹切 提交于 2019-12-10 12:44:28
问题 Does anyone know how to get the version editor in Xcode 4 to ignore whitespace? Update: I sent in a bug report. The bug report was closed as a duplicate. The state of the original bug report is closed. In the latest version of Xcode (4.3) I still cannot find a way to remove whitespace checking. 回答1: Solution: Right click in the gutter between both editors and select "Hide Whitespaces". I've also tried modifying git config (git config add core.whitespace) but that didn't work. 回答2: The Xcode

XCode 4.2 + Iphone 3g can't run app

﹥>﹥吖頭↗ 提交于 2019-12-10 12:43:18
问题 When I created a plain vanilla Phonegap application and try to run it on an iPhone 3g with IOS 4.2 it doesn't run. The IOS deployment target is set to 4.0 and everything does build successfully This all happened after I installed XCode 4.2 with IOS SDK5. Running apps on the simulator is no problem. Anyone who knows how I can get it running again? 回答1: See my answer to Is it possible to target older iOS versions when using Xcode 4.2 and iOS 5 SDK? 来源: https://stackoverflow.com/questions

Instruments 4.1 unresponsive to projects launched from Xcode 4.1 until pressing Cmd-Tab

喜夏-厌秋 提交于 2019-12-10 12:37:57
问题 If I open Instruments and select a standard application (e.g. Mail or MS Word) it has no issue. If I am in Xcode and I go to Product > Profile (or press Cmd + I ), it launches Instruments, allows me to select a template, and loads the standard screen. Then the downward arrow starts tracing to the right as it should, and the iOS simulator launches the program. However, nothing is plotted in Instruments. It shows no changes to anything no matter what the app is doing. I can't click anything in

What is the easiest way to determine an iOS .app bundles size while developing?

依然范特西╮ 提交于 2019-12-10 12:33:12
问题 It is important to make sure every iOS application submitted to the AppStore is under 20MB in size so that it can be downloaded over-the-air. I am working on an app that may be getting close to that limit, and I've discovered that there does not appear to be an easy way to tell the current output .app bundle size from within XCode. In XCode4 in particular - by default every build is tucked away in a hard to get at and cryptically named temp directory. I don't want to override this default

How to load images from a specific group?

女生的网名这么多〃 提交于 2019-12-10 12:26:15
问题 In Xcode4, I use groups for grouping my stuff, for example I have a tree like group hierarchy for my various images. The interesting part is that I can access an image directly without specifying a group. UIImage *img = [UIImage imageWithName:@"image1.png"]; I have two questions. First, how to define concrete path of groups where resides all needed images (for example for the group tree "Img/Enemy/")? And a second, how to iterate through that group path to load all the images from that group?

Sharing data/string with a singleton between views

寵の児 提交于 2019-12-10 12:17:00
问题 I'm trying to share a string between two views on my iPhone project. It currently works if I use the actual @"something here" for the string, but if I want to use something like label.text, it doesn't even though it is still a string. I'll show you what I have to make it clearer. First View: Info_ViewController.h #import <UIKit/UIKit.h> @interface Info_ViewController : UIViewController { IBOutlet UITextField *locationField; } @property (nonatomic, retain) NSString *locationString; + (id

xcode 4 svn issue, commits fail with “The operation could not be performed no repositories could be reached.”

一个人想着一个人 提交于 2019-12-10 11:07:59
问题 Yet another xcode 4 svn issue, commits fail with “The operation could not be performed no repositories could be reached.” This is for a project that is newly checked out from a remote svn repository an edit is made to a file and trying to commit the change fails because the xcode 4’s “brain dead” svn integration fails. In xcode I can diff the file with previous versions, see the complete history… Commit from the shell works fine. Having run into 8 separate issues dealing with connectivity