小编Ste*_*eve的帖子

有没有办法以编程方式将相机焦点从iOS设备设置为无限远?

我正在创建一个应用程序来锁定相机焦点以进行视频录制.我想在没有用户手动调整焦点的情况下将焦点锁定到无限远.这可能吗?谢谢!

camera focus infinity ios

12
推荐指数
2
解决办法
9665
查看次数

如何在textview中的文本之间留出空间?

我需要根据Android屏幕绑定制作这样的东西,

 S             M             T              W               T              F               S
Run Code Online (Sandbox Code Playgroud)

我这样做:

    <TextView
    android:id="@+id/textView1"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginTop="45dp"
    android:text="S       M       T        W        T        F       S" />
Run Code Online (Sandbox Code Playgroud)

这不能正常工作,不是根据设备屏幕绑定.我需要这样的东西:

<TextView
    android:id="@+id/textView1"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginTop="45dp"
    android:text="S""10dp""M""10dp""T""10dp""W""10dp""T""10dp""F""10dp""S""10dp" />
Run Code Online (Sandbox Code Playgroud)

android space textview

10
推荐指数
2
解决办法
3万
查看次数

Apple Mach-O Linker错误,我不知道该怎么做

我正在遵循将cocos2d-x中的nextpeer与c ++集成的接下来的指导原则,我已经在项目中复制了所需的框架和类,然后为nextpeer添加了所需的框架,还添加了链接器标志但是有Apple Mach-O链接器错误,这是一个日志:

 Undefined symbols for architecture i386:
 "_CTFontCopyFullName", referenced from:
    -[NSMutableAttributedString(NP_OHCommodityStyleModifiers) npSetTextBold:range:] in       Nextpeer(NP_NSAttributedString+Attributes.o)
 "_CTFontCreateCopyWithAttributes", referenced from:
  ___NP_NSAttributedStringByScalingFontSize_block_invoke in Nextpeer(NP_TTTAttributedLabel.o)
 "_CTFontCreateCopyWithSymbolicTraits", referenced from:
  -[NSMutableAttributedString(NP_OHCommodityStyleModifiers) npSetTextBold:range:] in Nextpeer(NP_NSAttributedString+Attributes.o)
 "_CTFontCreateUIFontForLanguage", referenced from:
  -[NSMutableAttributedString(NP_OHCommodityStyleModifiers) npSetTextBold:range:] in Nextpeer(NP_NSAttributedString+Attributes.o)
 "_CTFontCreateWithFontDescriptor", referenced from:
  -[NSMutableAttributedString(NP_OHCommodityStyleModifiers) npSetFontFamily:size:bold:italic:range:] in Nextpeer(NP_NSAttributedString+Attributes.o)
"_CTFontCreateWithName", referenced from:
  _NP_NSAttributedStringAttributesFromLabel in Nextpeer(NP_TTTAttributedLabel.o)
  -[NSMutableAttributedString(NP_OHCommodityStyleModifiers) npSetFontName:size:range:] in Nextpeer(NP_NSAttributedString+Attributes.o)
"_CTFontDescriptorCreateWithAttributes", referenced from:
  -[NSMutableAttributedString(NP_OHCommodityStyleModifiers) npSetFontFamily:size:bold:italic:range:] in Nextpeer(NP_NSAttributedString+Attributes.o)
"_CTFontGetSize", referenced from:
  ___39+[NP_OHASBasicMarkupParser tagMappings]_block_invoke_3 in Nextpeer(NP_OHASBasicMarkupParser.o)
  ___NP_NSAttributedStringByScalingFontSize_block_invoke in Nextpeer(NP_TTTAttributedLabel.o)
 "_CTFontGetSymbolicTraits", referenced from:
  -[NSAttributedString(NP_OHCommodityConstructors) npTextIsBoldAtIndex:effectiveRange:] in Nextpeer(NP_NSAttributedString+Attributes.o)
 "_CTFrameGetLineOrigins", referenced from:
  -[NP_TTTAttributedLabel …
Run Code Online (Sandbox Code Playgroud)

c++ linker ios cocos2d-x nextpeer

0
推荐指数
1
解决办法
492
查看次数

标签 统计

ios ×2

android ×1

c++ ×1

camera ×1

cocos2d-x ×1

focus ×1

infinity ×1

linker ×1

nextpeer ×1

space ×1

textview ×1