Xcode 项目无法识别 Podfile 属性
Xcode project doesn't recognize podfile properties
我刚刚将这个 pod 添加到我的项目中:
并且在终端中有 运行 pod install
,看起来也不错。
Charless-MBP:BloQuery charleswesleycho$ pod install
Updating local specs repositories
Analyzing dependencies
Downloading dependencies
Using IPInsetLabel (1.3.0)
Generating Pods project
Integrating client project
Sending stats
而且我也在使用 .xcworkspace
但是当我尝试使用这个 pod 应该带来的新功能时 Xcode 抱怨:
即使我确实导入了 class 并且 Xcode
甚至在我输入时自动完成了。关于为什么我的 pod 没有连接的任何想法?
这是播客:https://github.com/control/IPInsetLabel
问题是 self.questionTextLabel
的类型是 UILabel
。但是 UILabel
没有 insets
和 verticalTextAlignment
这样的属性。这些是由 IPInsetLabel
.
添加的属性
因此,一旦您将 self.questionTextLabel
设为 IPInsetLabel
类型,您将能够访问这些属性。
我刚刚将这个 pod 添加到我的项目中:
并且在终端中有 运行 pod install
,看起来也不错。
Charless-MBP:BloQuery charleswesleycho$ pod install
Updating local specs repositories
Analyzing dependencies
Downloading dependencies
Using IPInsetLabel (1.3.0)
Generating Pods project
Integrating client project
Sending stats
而且我也在使用 .xcworkspace
但是当我尝试使用这个 pod 应该带来的新功能时 Xcode 抱怨:
Xcode
甚至在我输入时自动完成了。关于为什么我的 pod 没有连接的任何想法?
这是播客:https://github.com/control/IPInsetLabel
问题是 self.questionTextLabel
的类型是 UILabel
。但是 UILabel
没有 insets
和 verticalTextAlignment
这样的属性。这些是由 IPInsetLabel
.
因此,一旦您将 self.questionTextLabel
设为 IPInsetLabel
类型,您将能够访问这些属性。