我有一个UIButton使用自定义字体的子类.问题是大写字母不显示分音符.
下面是带有和不带自定义字体的相同按钮样本的图像.我将标题的背景颜色设置为红色以查看正在发生的事情.
没有自定义字体

使用自定义字体

我的UIButton子类重写awakeFromNib
- (void)awakeFromNib
{
[super awakeFromNib];
UIFont *font = [UIFont fontWithName:@"TitilliumText22L-Bold" size:self.titleLabel.font.pointSize];
self.titleLabel.font = font;
}
Run Code Online (Sandbox Code Playgroud)
任何人都可以告诉我该怎么做才能在大写字母上显示分音符?
谢谢.
我试图x264按照这篇文章编译Android 的库.
我克隆了x264项目git clone git://git.videolan.org/x264.git并尝试使用以下配置进行编译:
NDK=~/development/android-ndk-r10c
TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64
PLATFORM=$NDK/platforms/android-21/arch-arm
./configure \
--cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi- \
--sysroot=$PLATFORM \
--host=arm-linux \
--enable-pic \
--enable-static \
--disable-cli
Run Code Online (Sandbox Code Playgroud)
问题是我收到了No working C compiler found.错误.
的conftest.log输出:
$ cat conftest.log
./configure: line 153: arm-linux-androideabi-gcc: command not found
Run Code Online (Sandbox Code Playgroud)
但这arm-linux-androideabi-gcc是工具链的bin文件夹!!
看看这个其他问题,看起来由于某种原因,即使文件存在,因为它是64位Mac,它将不会执行该arm-linux-androideabi-gcc文件并将返回这个奇怪的错误和日志.
我在Mac OS X 10.10中安装了XCode命令行工具:
$ xcode-select -p
/Applications/Xcode.app/Contents/Developer
Run Code Online (Sandbox Code Playgroud)
GCC版本:
$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn) …Run Code Online (Sandbox Code Playgroud) 我有一个UIButton内部UITableViewCell.当用户触摸单元格的按钮时,我想显示UIPopoverController指向该按钮的按钮.
目前,我在单元格的委托中有以下代码(委托是拥有UITableView的视图控制器):
-(void) onStatusButtonTouched:(UIButton *)aButton{
StatusPickerController *statusPicker = [[StatusPickerController alloc] init];
_popOver = nil;
_popOver = [[UIPopoverController alloc] initWithContentViewController:statusPicker];
[_popOver setDelegate:self];
[_popOver presentPopoverFromRect:aButton.frame inView:self.view permittedArrowDirections:UIPopoverArrowDirectionLeft animated:YES];
[_popOver setPopoverContentSize:CGSizeMake(100, 352)];
}
Run Code Online (Sandbox Code Playgroud)
使用此代码时,弹出窗口始终指向视图的顶部,因为按钮的y位置相对于其单元格.
我的问题是,我怎么能知道按钮的绝对位置才能指向它?有没有办法解决这个问题?
我有一个UIViewController叫做FLProfileViewController包含a 的子类UICollectionView.视图FLProfileViewController被添加为另一个视图的子UIViewController视图.问题是,UICollectionView不渲染.... 只有当我执行从XCode的5(最终版)的代码.即使从XCode 5 DP 6运行相同的项目,UICollectionView也会渲染.
更重要的是,在将其视图添加到UIViewController项目的其他项目时,实际呈现了同一类的另一个实例.
调试代码,我看到numberOfSectionsInCollectionView:调用并返回1,collectionView:numberOfItemsInSection:调用并返回47.
但是collectionView:cellForItemAtIndexPath:并collectionView:layout:sizeForItemAtIndexPath:没有被召唤.
有没有人发现类似的问题?关于可能发生的事情的任何想法?
ios ×3
objective-c ×3
android ×1
android-ndk ×1
custom-font ×1
gcc ×1
ios7 ×1
ipad ×1
iphone ×1
libx264 ×1
uibutton ×1
x264 ×1
xcode5 ×1