我认为这是提出这个问题的合适社区.
当Apple在今年夏天举办开发者大会时,我意识到他们将开发Swift开源软件.
我的印象是Xcode不会移植到Linux,但我理解一些实体会创建一个模仿Xcode的开发程序.
因此,我想知道这种情况的新发展.
有没有人对此主题有任何更新的了解或有任何相关经验?
昨晚下载了xcode 8.2 beta,转换了我的大部分代码,但现在我遇到了关于app delegate的六个函数的黄色警告符号:
var window: UIWindow?
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Override point for customization after application launch.
return true
}
func applicationWillResignActive(application: UIApplication) {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. …Run Code Online (Sandbox Code Playgroud) 所以我最近重新设计了我的一个应用程序的UI,我正在寻求更新.作为点睛之笔,我还重做了iPhone和iPad的应用程序图标.就像第一次,我使用mac app Asset Catalog Creator和Prepo或MakeAppIcon.com和AppIcon.build等网站,或其他一些密切相关的在线应用程序来创建Homescreen和其他图标.通常情况下,这些都是成功的.不幸的是,经过一系列失败尝试后,一旦我尝试"验证",我就会收到一些关于丢失图标的错误.
我曾多次使用上述应用程序和网站,希望取得一些成功......但无济于事.我已经尝试直接从Sketch添加单个文件,没有运气.我甚至在info.plist中添加了我的资产中的每个项目,我仍然收到相同的错误.我不确定如何继续,并非常感谢一些帮助.
首先,如果您对此提交有更好的标题或实际问题的建议,请随时编辑.我被问到如何成功地提出这个问题.
所以我已经为swift做了几个Firebase聊天(iMessage/Facebook聊天)教程.我知道如何发送信息 -
let ref = Database.database().reference().child("Message")
let childRef = ref.childByAutoId()
let toID = finalSelected.ContactID as Any
let fromID = Auth.auth().currentUser?.uid
let values = ["Message": messageTextField.text!, "toID": toID, "fromID": fromID!] as [String: Any]
childRef.updateChildValues(values) { (error, ref) in ...
Run Code Online (Sandbox Code Playgroud)
我知道如何找回它们 -
let messagesOf = Auth.auth().currentUser?.uid
let messageDB = Database.database().reference().child("Message")
let userMessages = messageDB.queryOrdered(byChild: "toID").queryEqual(toValue: messagesOf)
userMessages.observeSingleEvent(of: .childAdded, with: { (snapshot) in
let values = snapshot.value as! Dictionary<String, String>
let message = values["Message"]
let from = values["fromID"]
let post = ChatMessages() …Run Code Online (Sandbox Code Playgroud) swift ×3
ios ×2
appdelegate ×1
chat ×1
firebase ×1
icons ×1
itunes-store ×1
linux ×1
open-source ×1
swift3 ×1
xcode ×1
xcode8 ×1