xcode5

Xcode5 and iOS7: trailing whitespaces in strings in Localizable.strings not working anymore

[亡魂溺海] 提交于 2019-12-01 05:10:34
In my Localizable.strings I define a string with trailing whitespaces like this: "%@ points " = "%@ Punkte "; This worked just fine in iOS6 but when runing on an iOS7 emulator, the string is trimmed and the trailing whitespaces are stripped off. Background: The string above is right-aligned in a label. I use the whitespaces as a padding since I dont want to subclass UILabel or write a bunch of code for just one label. I also tried using ASCII signs, but this also did not work. Any suggestions for a simple soultion would be appreciated. Thank you! Perhaps you can try this workaround with

Asset Catalog Compiler Options missing

我与影子孤独终老i 提交于 2019-12-01 04:44:10
问题 I just switched a project over to using Asset Catalogs for icons and launch images. It appears that something has gotten borked, though, because the assets are not getting built into the app. I can't be sure, but I suspect the problem is related to the fact that the Asset Catalog Compiler – Options panel is missing from my project/target Build Settings. In new apps, or other apps that I have switched over, once the target is using an Asset Catalog that panel will appear. For this project,

Xcode 5 IOS simulator black screen and app install fails

ε祈祈猫儿з 提交于 2019-12-01 03:41:51
问题 I just updated my xcode to work with ios7. Now whenever I make a new app, even if its set to build for ios7, I get an error in the simulator when running. It says that the install failed, even if I just made the project and haven't coded anything into it yet. The simulator also shows a black screen. I have tried the reset content, and it didn't work. I saw something somewhere saying to delete the Iphone Simulator folder in application support, but no such folder seems to exist. What can I try

The correct way to define default argument for a friend function in C++

不羁的心 提交于 2019-12-01 03:38:32
问题 I want to specify a default value for a friend function, as follows: friend Matrix rot90 (const Matrix& a, int k = 1); When compiling this line with Xcode 5.1.1, I get the following error ./Matrix.hh:156:19: error: friend declaration specifying a default argument must be a definition What is the proper way of fixing it? Thanks! 回答1: The standard says (§8.3.6): If a friend declaration specifies a default argument expression, that declaration shall be a definition and shall be the only

No more quick help in Xcode editor

南笙酒味 提交于 2019-12-01 03:36:12
Quick help has gone away in my Xcode 5 (5.0.2 on OS X 10.8.5): Instead of the little popup window that's supposed to pop up for the Opt - Click shortcut all that ever shows is the arrow image: Been like this since the Xcode 5 upgrade. Any ideas how to fix it..? FWIW: The doc sets are in fact properly installed - 'Opt' + Double-Click brings up the correct documentation as usual. Even removing the doc sets manually and re-downloadig didn't help. The hovering Quick Help window is still gone.. Quick Help behaves this way if JavaScript is disabled, and certain configurations seem to cause Xcode to

Add custom Cell to JKExpandtableview as Child Cell in iOS

风流意气都作罢 提交于 2019-12-01 00:56:57
I've been facing problem to add custom cell in JKExpandableTableView ,How Can I add Custom Cell as a child,Any Help will be appreciated ,Thanks. Sorry for my english. I'd like to achieve output like Note: I'm using this Library JKExpandableTableView everything is working fine. Nabeel Ahmed Please go to the following link. The creator himself answered the question https://github.com/jackkwok/JKExpandTableView/issues/5 jackkwok commented on 9 Aug 2014 Hi Bruno, Thanks! You may need to subclass both of them. What kind of customizations do you want to do? darkdongdong JKExpandTableView is a

Disable ARC with Xcode 5

戏子无情 提交于 2019-12-01 00:52:20
In versions of Xcode previous to 5, we can disable ARC in the project settings when we create the project. Now ARC is causing this problem for me. With an property list file, for the reading step, the compiler gives me an error: "implicit conversion of 'int' to 'id' is disallowed with ARC". I did not have this problem with the same code with Xcode 4. In my property list file, The keys are numbers and also in my viewController.m When I disallow ARC for the target, the warning persists. I don't see how I can add a compiler flag. The code (with French strings): NSString *error; NSString *rootPath

Copied a View to a project with Navigation Controller - Frame for “Image View” will be different at run time

守給你的承諾、 提交于 2019-11-30 22:18:56
Probably a simple question for experienced Xcode 5 interface builder users, but it is difficult to find the answer on Google: I have an app for iPhone , which doesn't use a navigation controller (here fullscreen ): The view scene on the very right side has an image view and 5 labels underneath it - to display user details: Then I have created another iPhone app and copied that "details" view to it (here fullscreen ): And now a warning is shown by Xcode 5.0.2: Frame for "Image View" will be different at run time. Is it because some space on the top of the view will be occupied by the navigation

Add custom Cell to JKExpandtableview as Child Cell in iOS

◇◆丶佛笑我妖孽 提交于 2019-11-30 20:01:53
问题 I've been facing problem to add custom cell in JKExpandableTableView ,How Can I add Custom Cell as a child,Any Help will be appreciated ,Thanks. Sorry for my english. I'd like to achieve output like Note: I'm using this Library JKExpandableTableView everything is working fine. 回答1: Please go to the following link. The creator himself answered the question https://github.com/jackkwok/JKExpandTableView/issues/5 jackkwok commented on 9 Aug 2014 Hi Bruno, Thanks! You may need to subclass both of

XCode: cannot change Navigation Bar tint via Storyboard

孤街浪徒 提交于 2019-11-30 17:46:47
i wan't to give a NavigationBar a certain tint, however i cannot find the setting in XCode. Is it still present? I saw a number of tutorials mentioning that possibility (i.e. http://www.appcoda.com/customize-navigation-status-bar-ios-7/ ). Where do i have to click to get this dialog? I tried the NavigationController, everywhere inside the NavigationController and the Navigation Items in the subcontrollers. I know how to do it programmatically so that's not my question here. Thanks guys. In your storyboard, you'll need to click on the "Navigation Bar" object and then look at the object's