xcode6

“ProductModuleName-Swift.h” not exporting all Swift classes

為{幸葍}努か 提交于 2019-12-12 01:56:23
问题 I have defined two Swift classes in my Xcode project. Everything else is Objective-C. To use the classes in Objective-C I'm trying to import ProductModuleName-Swift.h but the file contains only the definition for one of the Swift classes. ( SearchViewController ) This class is being exported: class SearchViewController : UIViewController { but this isn't: public class Socket { 回答1: From "Migrating Your Objective-C Code to Swift" in the "Using Swift with Cocoa and Objective-C" documentation:

64 bit Twitter Framework for the app developed in xcode

≯℡__Kan透↙ 提交于 2019-12-12 01:55:54
问题 Earlier,I have created 32 bit xcode app,that include twitter API,but now,due to Apple's new requirement of an app to be 64 bit,I updated xcode to xcode 6.1 and ios 8.1 version,and made changes in the build settings... Architectures:Standard Architecture(arm7,arm64) Valid Architectures:armv7 armv7s arm64 But,now the error arises i.e. Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_OAConsumer", referenced from: objc-class-ref in SA_OAuthTwitterEngine.o "_OBJC_CLASS_$_OADataFetcher",

Size Class Issues - Also need a size class key

旧巷老猫 提交于 2019-12-12 01:54:49
问题 In Xcode I am having an issue with the size classes in my app. I am unable to get the right size classes to show that seem to work for all of my different devices. I kind of would like a key to see what the size classes should really be, also the size classes don't seem to really match up. Below is an image attached of an example. I can't get anything correct. I am new to this and I know that I am doing something wrong. Also, I tried this: https://developer.apple.com/library/ios/documentation

How to Add plugin for Xcode 6+

泪湿孤枕 提交于 2019-12-12 01:54:20
问题 Adding plugin for Xcode 6 Open your terminal and type this without quotes. "cd /Applications/Xcode.app/Contents/PlugIns" or same in terminal type this without quotes. "open /Applications/Xcode.app/Contents/PlugIns" Copy/Add/Drag&Drop your plugins there. Note: This will require an authentication for administrator password. Authenticate, it is safe. lol for Plugins Removal: just do the same, go to the said path and reverse the process.... "Move to Trash". 回答1: Thank's for this. I'm adding a

Swift enums: normal / non failable initializers not supported - or just broken?

安稳与你 提交于 2019-12-12 01:46:27
问题 I have read documentation on Swift's failable initializer's but didn't see anything explicit about the normal, non-failable variety. Did I miss something, or are regular initializer not supported for enumerators with raw values, even when there is no possibility that the initializer could fail (since the initializer defers to a default value): enum FailableSeason : Int { init?(d: Int) { switch (d % 365) { case 60...151: self = .Spring case 152...243: self = .Summer case 244...334: self =

How to add to an array when button is pressed?

寵の児 提交于 2019-12-12 01:23:32
问题 I've got custom buttons on a custom tableview cell, when button is pressed the image changes to checked/unchecked (see code below). Issues is: How do I add the cell row data thats checked to an array that will be its own table (eg. a table with only checked data). @IBAction func tickAction(sender: UIButton) { println("SSSS") if (sender.selected) { sender.setImage(UIImage(named:"Unchecked.png"), forState: .Normal) sender.selected = false } else { sender.setImage(UIImage(named:"Checked.png"),

How to Fetch date and time from a formatted string in iOS

妖精的绣舞 提交于 2019-12-12 00:39:44
问题 I have a NSString "dateString" which contains date and time in given format. "MM/dd/yyyy HH:mm:ss a" . I want to fetch the data from the dateString using NSDateFormatter and then I'm trying to show in a String "strDate" . I.m able to fetch the data but the only issue is that i'm not getting the correct value for "hour" place. For Ex: dateString = 1/23/2015 7:06:37 AM strDate = 01/23/2015 00:06:37 am How to resolve this issue. Thanks in advance. This is my code: -(NSString *)getDateQuestion:

Alamofire + Swift in UICollectionView

≯℡__Kan透↙ 提交于 2019-12-11 23:51:09
问题 I had no idea how to parse JSON data using Alamofire. Right now I successfully request the data from web service. The problem is I'm not really sure how to embed/parse json (image) data into UICollectionView import UIKit import Alamofire class PopularViewController: UIViewController,UICollectionViewDataSource, UICollectionViewDelegate { var users: [AnyObject] = [] func collectionView(collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { //#warning Incomplete method

UIActionSheet button text not displaying properly in ios 8

不问归期 提交于 2019-12-11 22:18:59
问题 I am trying to create little custome UI of UIActionSheet.I want to display the large text in button of UIActionSheet. This code is working fine below ios 8, But in ios 8 - (void)willPresentActionSheet:(UIActionSheet *)actionSheet { for (UIView *subview in actionSheet.subviews) { if ([subview isKindOfClass:[UIButton class]]) { UIButton *button = (UIButton *)subview; UIFont *textFont=[UIFont fontWithName:@"Palatino-Roman" size:12.0]; button.titleLabel.font=textFont; button.titleLabel

Make a dependent target with an Xcode 6 template

删除回忆录丶 提交于 2019-12-11 22:14:55
问题 In Xcode 5, the Dependencies key along with an array of integers will indicate to create a dependency from another created target to the current target. <key>Dependencies</key> <array> <integer>1</integer> </array> This indicates make the 1st target a dependency on the current (0th) one: However in Xcode 6, the second target does not even get generated and the following gets logged to the console: 9/23/14 3:26:58.520 PM Xcode[14870]: Invalid target dependency for template from /Users/paulb