I faced with strange problem. I installed iPhone SDK 4.3 and xCode 4 and now I can't compile libav from ffmpeg for ARMv6 architecture. This is my script to compile it (it works fine for iPhone SDK 4.2):
./configure \
--disable-doc --disable-ffmpeg --disable-ffplay --disable-ffserver --enable-cross-compile \
--enable-encoder=rawvideo \
--enable-decoder=h264 \
--enable-decoder=mpeg4 \
--enable-encoder=mjpeg \
--enable-muxer=rawvideo \
--enable-demuxer=h264 \
--enable-parser=h264 \
--enable-cross-compile \
--arch=c \
--target-os=darwin \
--enable-libopencore-amrnb --enable-libopencore-amrwb \
--cc=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-gcc-4.2.1 \
--as='gas-preprocessor/gas-preprocessor.pl /Developer/Platforms/iPhoneOS.platform/Developer /usr/bin/arm-apple-darwin10-gcc-4.2.1' \
--sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk \
--cpu=arm1176jzf-s --extra-cflags='-arch armv6' …
Run Code Online (Sandbox Code Playgroud) 我没有太多的iphone屏幕设计经验,但我需要制作一个这样的表:(图像),我做了一个调查,但我没有找到任何东西.这个表需要有一个圆角,用户将能够插入数据,在这种情况下,名字,姓氏等...现在我正在使用SDK 4.3.如果有人有教程我会很感激
谢谢,
当我Product > Analyze
的铿锵声分析仪给我一个内存泄漏我不明白.它说我在第二行泄漏了在下面代码的第一行中初始化的东西
[[testView newScore] setText: [NSString stringWithFormat: @"+%d", addScore]];
[[testView newScore] setTextColor: [UIColor greenColor]];
Run Code Online (Sandbox Code Playgroud)
由于Instruments现在不能正常工作(我正在使用带有SDK 4.3的Xcode 4.1),我无法进一步研究这种泄漏.
你知道为什么这可能是内存泄漏.该属性newScore
定义如下:
@property (nonatomic, retain) UILabel *newScore;
Run Code Online (Sandbox Code Playgroud)
并且testView
是.的子类UIView
.
编辑:分析仪输出的屏幕截图:
谢谢你的阅读!