xcode6

ViewController does not confirm to protocol 'UITableViewDataSource'

◇◆丶佛笑我妖孽 提交于 2019-12-13 04:34:29
问题 This question was asked multiple times. http://stackoverflow.com/questions/25581780/type-viewcontroller-does-not-confirm-to-protocol-uitableviewdatasource and I did tried the solutions provided over there but still I am not able to get away with this error. Code to UITableView is below import UIKit class ViewController: UIViewController, UITableViewDataSource, UITableViewDelegate { @IBOutlet var tableView: UITableView! var data: [String] = ["one","two","three","four"] override func

CocoaPods version control, must use pod install when cloning repo

被刻印的时光 ゝ 提交于 2019-12-13 04:33:14
问题 I have a question about using CocoaPods and working with version control. I have my project on a repo at GitLab. But if someone wants to clone that repo and work on it they have to use the pod install command. I thought that if you push you project with pods to a repo you don't have to use pod install when cloning it. Or is it something I have done wrong? This is how the current .gitignore file looks: xcschememanagement.plist Pods-AFNetworking.xcscheme Pods.xcscheme Breakpoints_v2.xcbkptlist

Form Sheet content disappearing

不羁岁月 提交于 2019-12-13 04:25:16
问题 I'm trying to implement a form sheet. Here is what it looks like on Storyboard: When i run the app only the background appear and everything else is hidden. I'm presenting the form sheet using Modally Presented - form sheet and i'm working with (wRegular hRegular) size. Why is that happening? 来源: https://stackoverflow.com/questions/26886372/form-sheet-content-disappearing

Xcode Version 6.4 (6E35b) on El Capitan now being rejected

亡梦爱人 提交于 2019-12-13 04:11:05
问题 I am not using beta Xcode software. I have always been able to submit to the app store regardless of mac osx version, as long as I used the latest GM Xcode release. All of a sudden, from what I can tell, a few days ago itunes connect is now failing when submitting for review. Before you respond by "You cannot use beta software to submit applications to the app store" please read the official copy from Apple. Submitting Apps Apps that are created using beta versions of Xcode or that are built

Unable to create ipa in xcode 6?

扶醉桌前 提交于 2019-12-13 03:43:27
问题 I'm building an iOS app using storyboards.I have transfer my project to another mac. When I'm creating a ipa, organiser screen opens and I selected export and then saved for ad-hoc deployment, but I'm getting an error as shown below. Here is the screenshot: I tried to import all provisioning files again but its not working.I'm unable to handle this issue. 回答1: You need to export your distribution certificate from your first machine to second machine. Then install ad hoc provisioning profile

Swift update existing item core data

不羁的心 提交于 2019-12-13 03:35:42
问题 I have seen many examples with one view controller for adding or updating core data items. Any thoughts on pros or cons of doing in separate view controllers? My code for trying to do the update I think I am missing one key part to get it to work. @IBAction func saveItem(sender: AnyObject) { let appDel: AppDelegate = UIApplication.sharedApplication().delegate as AppDelegate let context: NSManagedObjectContext = appDel.managedObjectContext! let en = NSEntityDescription.entityForName("Items",

UIScrollView and auto layout not working

大兔子大兔子 提交于 2019-12-13 02:14:43
问题 I'm trying to make a view scrollable in my app. O follow exactly the steps in tutorial https://www.youtube.com/watch?v=UnQsFlMGDsI . The main steps I did were: Add a UIscrollView Add a view into UIscrollView (Content View) Create the margin constraints with value 0 (top, left, right and botton) for UIScrollView Create the margin constraints with value 0 (top, left, right and botton) for Content view Create 2 constraints of "equal width" and "equal height" between ContentView and main view ...

Wiring up Outlet Collection Trouble

雨燕双飞 提交于 2019-12-13 02:11:55
问题 From what I can tell there are some challenges people are having in XCode6 in terms of wiring up outlet collections. I just wanted to see if i'm doing this right or what I need to do correctly! I reviewed here Can't hook up an outlet collection in Xcode 6 using storyboard as well as other areas, but I wanted to be more basic about this first. I have 7 images on a screen. I'd like to iterate through all of them in a loop or something. I read an outlet collection would be a sensible way to do

How do I create connected text fields in ios?

五迷三道 提交于 2019-12-13 02:08:19
问题 I want to create a login screen similar to facebook's for my iOS app. How do I create 2 text-fields that are both in that rounded box? 回答1: Embed two textfields in a UIView and give that view the layer.cornerRadius that you need Giving UIView rounded corners 回答2: add 2 UITextfields and set their borders to none add background image having rounded corner from top left and top right to the 1st uitextfield i.e. username uitextfield add background image having rounded corner from bottom left and

_UIImagePickerControllerUserDidCaptureItem not called xcode 6

十年热恋 提交于 2019-12-13 01:26:18
问题 Is it just me or _UIImagePickerControllerUserDidCaptureItem notification from uiimagepickercontroller stopped working on iOS 8 and XCode 6. I use it to rotate the camera overlay after the user taked a picture. PLease help 回答1: It's pretty strange, but in iOS 8 setting observer using [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(imagePickerControllerDidCapture) name:@"_UIImagePickerControllerUserDidCaptureItem" object:nil]; doesn't work for UIImagePickerController,