我正在尝试添加一个由cocoapods添加的pod,我正在使用swift 3,而pod(SQlite.swift).
我试图使用没有最新swift版本的高手,但是有一个分支为swift 3.
那么我应该如何设置我的podfile来下载特定的分支?可能吗?
这是我的podfile:
platform :ios, '10.0'
target 'RedShirt' do
use_frameworks!
# Pods for RedShirt
pod 'SQLite.swift', :git => 'https://github.com/stephencelis/SQLite.swift.git'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.0'
end
end
end
Run Code Online (Sandbox Code Playgroud) 我试图在pyCharm中使用jupyter笔记本,但是它一直使用python2而不是python3。
加:
我这里有六个标签,每两个标签在水平视图中堆叠,所有水平视图在垂直视图中堆叠,如下所示


这就是我想要的:无论每个标签的内容如何,我都希望将Label1宽度设置为30%Label2
外部堆栈视图设置为Aligment:Fill,Distribution:Fill Equally
所有内部堆栈视图都设置为Aligment:Fill,Distribution:Fill
我把Label1拥抱设置为250,Label2默认为(其他人也是如此).
我试图在图2中设置宽度等于宽度.但它未被选中
我该怎么办呢?喜欢在故事板中完成所有工作,但在代码中工作也是可以的.
解决方案:只需选择两个标签来添加约束,如下面的 解决方案图像