xcode6

Segue - index 0 beyond bounds for empty array

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 09:53:20
问题 Good afternoon, I'm in the last step of having a TableViewController working and I'm having problems with the DetailViewController. Here you find my Segue code: I have problems when declaring the "[self.carMakes objectAtIndex:[myIndexPath row]]" because I recieve the error: " [__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array' " and I have search the error and it's realated my array, that is empty. I'm going to post below more code if that helps you to find where I'm doing

UITabBarController Set a Default Tab in Swift Language

别说谁变了你拦得住时间么 提交于 2019-12-11 09:47:17
问题 I have a UITabBarController that has 5 different view controllers attached to it. Each one has there own specific tab such as Home, Settings, etc. How can i set a certain tab to be the default tab when launched? 回答1: Is there a specific reason why you can't move your chosen first tab to be presented to the left most slot? self.tabBarController.selectedIndex = desiredIndex or, if you're code is in a UITabBarConroller subclass, simply: selectedIndex = desiredIndex should work. 回答2: You could

Xcode 6.0 taking forever to archive my project

自古美人都是妖i 提交于 2019-12-11 09:45:39
问题 Xcode 6.0 taking about 8 hours to archive a fairly large project! Any idea how to make the archiving project faster? The archiving just gets stuck for hours at compiling 42 of 42 source files. Also, sometimes Xcode just crashing after hours of attempting to archive. I recently upgraded my Mac to a 2.3GHz quad-core Intel Core i7 processor and 16GB RAM, but unfortunately that didn't help. I want to understand if it is a PC configuration issue or an Xcode issue. In other words, if I upgrade to a

sorting document outline in xcode 6

喜你入骨 提交于 2019-12-11 09:35:21
问题 in the document outline the scenes are sorted as they are added to the storyboard. Now after having added all scenes I want to sort them in a "content logic" to find them easier. Is it possible to re-arrange them manually and if so, how? 回答1: This can be done via storyboard xml. Just right click storyboard and open it as an xml. You should be able to see tag "scenes" which contains "scene" which is viewcontroller. The order presented under "scenes" tag correspond to the one you can see under

How to convert Kobold2D into a new Cocos2D 3.x project?

旧街凉风 提交于 2019-12-11 08:51:49
问题 I love Kobold2D, but since the upgrades of Xcode and it seems the Kobold2D has been discontinued (may be kobold touch is still updating, I'm not sure), which I can not even run it on Xcode 6. I am forcing to change my project from Kobold2D to Cocos2D, which a lots might change. I wonder, instead manually create a new one and copy paste every bits of my code and change them, is there a quick shot for making a Kobold2D into Cocos2d? (e.g replace libraries, change configs, etc) For the project,

How to make a view with picker and toolbar stay at the bottom of iphone screen

别来无恙 提交于 2019-12-11 08:27:08
问题 I am using this code and its placing my view at the top of the viewing area instead of the bottom. Any idea what I am doing wrong? I am not creating the view in swift because I already have it created in IB with a toolbar and pickerview inside it. let height = view.frame.size.height yearView.frame = CGRect(x: 0, y: height - 250, width: self.view.frame.width, height: 250) Even if I use the y coordinate and say 50 the view wont budge from the top. All I am trying to do is place this subview at

'Cordova/CDVViewController.h' not found when Archiving in Xcode (from Worklight)

◇◆丶佛笑我妖孽 提交于 2019-12-11 08:16:09
问题 I'm suffering this error message when trying to Archive my app prior to submission to the App Store. The full error is: In file included from /Users/Kevin/Documents/workspace/SongLink2/apps/SLPhone/iphone/native/Classes/CDVMainViewController.m:14: In file included from Classes/CDVMainViewController.h:15: /Users/Kevin/Documents/workspace/SongLink2/apps/SLPhone/iphone/native/WorklightSDK/include/MainViewController.h:34:9: fatal error: 'Cordova/CDVViewController.h' file not found #import

Building Sqlite ICU with xcode

会有一股神秘感。 提交于 2019-12-11 07:47:35
问题 How do I compile sqlite with ICU (International Components for Unicode) as a project in my iPhone app's workspace? I've compiled the sqlite amalgamation before, however I'm not sure what files I should download, and what scripts need to be added to xcode - surely I'm not the first to need this. Ideally I'm looking for step-by-step instructions. 回答1: This is a rather old question but b/c I spent quite some time in building an ICU version myself I would like to share my experience. Basically I

Cannot find protocol declaration for 'FBLoginViewDelegate'

不想你离开。 提交于 2019-12-11 07:46:41
问题 For some reason I'm getting the error Cannot find protocol declaration for 'FBLoginViewDelegate' when trying to include the FBLoginViewDelegate protocol to my ViewController interface. I've searched for other similar questions but most of them seem to be related to circular inclusions...I don't think that's the case for me. #import <UIKit/UIKit.h> @interface ViewController : UIViewController <UITextFieldDelegate, FBLoginViewDelegate> //Properties @property (weak, nonatomic) IBOutlet

how to search tableview content in iOS?

北战南征 提交于 2019-12-11 07:18:54
问题 i am displaying list of content in my table view now i want to search that list content using uisearchbar i am implemented this code but its not work. . -(void)SearchBarCode { self.disableViewOverlay = [[UIView alloc]initWithFrame:CGRectMake(0.0f,44.0f,320.0f,0)]; self.disableViewOverlay.backgroundColor=[UIColor lightGrayColor]; self.disableViewOverlay.alpha = 0; theSearchBar = [[UISearchBar alloc]initWithFrame:CGRectMake(0, 5, 374.0f, 50)]; theSearchBar.delegate =self; [self.tableView