xcode5

How to scroll UITableView in Storyboard editor of Xcode 5?

我是研究僧i 提交于 2019-11-30 06:31:23
问题 Storyboard had great feature to design tables of static cells. Until XCode 5 is was possible to compose long list of cells and scroll the table to edit them. With XCode 5 the scrolling simple stopped working - instead of scrolling the table, now it scrolls entire the storyboard. Did anyone solved this problem? I'm completely stuck with my long tables of static cells... 回答1: In the storyboard view uncheck Under Top Bars with the problematic scroll view selected. This allowed me to scroll all

Setting UITextView frame to content size no longer works in Xcode 5

╄→гoц情女王★ 提交于 2019-11-30 06:20:51
问题 The code snippet below worked to resize a UITextView frame to it's content height, before installing Xcode 5 but it doesn't work since the upgrade: CGRect frame = _textView.frame; frame.size.height = _textView.contentSize.height; _textView.frame = frame; I've searched and haven't found the fix. Any thoughts? 回答1: There's new stuff for this on iOS 7. To get the "fitted" size used by the text view after it's updated its text, call usedRectForTextContainer: on the textView's layoutManager

How to deploy project with iOS base SDK 6.1 to device with iOS 7

浪子不回头ぞ 提交于 2019-11-30 06:20:24
问题 I've been wasting my whole day on this issue, and could not find a solution: I've been developing an application with iOS 6.1 SDK, and the whole design relies on the iOS 6.1 UI. Yesterday, I've updated my phone to iOS 7, and after the update finished, the previously deployed app, which came back from the backup looked and worked the same as before (on iOS 6.1); everything was fine. However, I had to update my Xcode to version 5, so I can continue deploying successive debug versions to my iOS

How to permanently fix Xcode 5 SpringBoard failed to launch application with error: -3 [duplicate]

浪子不回头ぞ 提交于 2019-11-30 06:18:45
问题 This question already has answers here : iPhone Simulator: SpringBoard failed to launch application with error: 7 (22 answers) Closed 6 years ago . Launching apps from Xcode 5 to the iOS simulator (multiple OS versions) fails with SpringBoard failed to launch application with error: -3 . I can get around the problem by 'turning it off and back on again' (quitting the simulator and relaunching, uninstalling and redeploying the app, etc.), but it seems to come back again later and in other

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

杀马特。学长 韩版系。学妹 提交于 2019-11-30 05:44:45
问题 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

What should I use instead of deprecated GKLeaderboardViewController in iOS7?

你说的曾经没有我的故事 提交于 2019-11-30 05:28:18
ive updated my app for IOS 7 and game center has a few things deprecated such as loading and dismissing the leaderboard and achievements how can i fix them it says GKLeaderboardViewController is deprecated - (IBAction)LeaderBoardsButton:(id)sender { GKLeaderboardViewController *leaderboardController = [[GKLeaderboardViewController alloc] init]; if (leaderboardController != NULL) { leaderboardController.leaderboardDelegate = self; [self presentViewController:leaderboardController animated:YES completion:NULL]; } { AudioServicesPlaySystemSound(SoundID); } } - (void

IOS: set a default language in xcode for my app

这一生的挚爱 提交于 2019-11-30 04:26:45
问题 I started my xcode project and I have these settings: In xcode 5 it add this "base" language, but I don't understand how it works. I want to set as my default language english and not italian; for example if an user set its device in spanish or in french language it must see app in english and not in italian; can you help me? thanks 回答1: SOLVED!!! you should set "base" in in plist file section: Localization native development region and set Storyboard only for "base"; for other language only

ios: How open Tab Bar controller from ViewController using StoryBoards

て烟熏妆下的殇ゞ 提交于 2019-11-30 04:12:45
问题 I am doing this and want to open Tab bar Controller from Login Page if its first time and if already login then pass the LoginPage and open Tab Bar Controller after Spalsh means if user lands in app fiirst time sequesnce should be like this 1. Splash 2. Login Page 3. On successful Login open Tab Bar Controller having 4 tabs if user already login then 1. Splash 2. Tab bar controller I am trying to open Tab Bar controller through the following code in ViewDidLoad method UITabBarController *tbc

Optimized for iPhone 6 info text in App Store

假如想象 提交于 2019-11-30 03:43:10
I've updated my "old" Objective-C app to use the new storyboard with size classes, set the deployment target to iOS 8 and uploaded the new binary to the App Store. Still, the App Store doesn't show the text "this app is optimized for iPhone 6 and 6 plus". The text only mentions iPhone 5S and everything below. What am I supposed to do in order to get the app iPhone 6 approved? The solution was to add @3x versions for all used images and using the new size classes. You notice the app from switching to iPhone 6 supported when e.g. table cells look different (get very small) to adjust to the new

How to 'Build & Run' on multiple destinations at once in Xcode?

♀尐吖头ヾ 提交于 2019-11-30 01:53:02
How can one run a project on multiple destinations (say, iPhone, iPad and iSimulator) at once ? There are 2 related questions: Xcode 4 - One Click Build to Multiple Devices? Run on simulator and phone with one click The 1ˢᵗ question (supposedly) has an answer, but I can't figure out how exactly should you use the Aggregate target (if this is the right direction at all), and apparently neither could Josh Kahane, the OP; the "answer" still somehow got/remained accepted. The 2ⁿᵈ question was closed down as a "duplicate", as if the 1ˢᵗ one provided a (workable) answer. Added a bounty: (how) can