iphone-sdk-4.3

iPhone SDK 4.3 libav compiling problem

风格不统一 提交于 2019-12-18 10:31:09
问题 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

Passing an IBaction to another ViewController

百般思念 提交于 2019-12-12 01:16:38
问题 I have an IBAction button in one UIViewController that I want to perform an action in another UIViewController. How do I do this? 回答1: Declare a method in the second UIViewController and call from the IBAction in the first controller. Something like this: -(IBAction)myMethodFromFirstController{ SecondController *secondController = [[SecondController alloc] init]; [secondController method]; } 来源: https://stackoverflow.com/questions/12763470/passing-an-ibaction-to-another-viewcontroller

How to create UITableView like GRID in landscape mode?

跟風遠走 提交于 2019-11-28 12:43:40
问题 I wanna create the uitableview like this image . loading data from server and assigning the values to columns of Row. I saw the link of stack, but not helpful to me. UPDATE My code: - #pragma mark UITableViewDelegate methods - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { return 1; } - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger) section { return [modelArray count]; } - (UITableViewCell *)tableView:(UITableView *)tableView