cocoa-touch

What files do I need to distribute if requested to comply with LGPL in an iPhone app? [closed]

我怕爱的太早我们不能终老 提交于 2020-01-02 07:05:45
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I'm working on an iPhone app which uses the Zbar library which is under the LGPL licence. What I'd like to know is what I need to give someone if they request a copy of the code under this licence for my iPhone app? I've been told they are in the build folder and also that they are .o files. I've found some of

What files do I need to distribute if requested to comply with LGPL in an iPhone app? [closed]

不问归期 提交于 2020-01-02 07:04:35
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I'm working on an iPhone app which uses the Zbar library which is under the LGPL licence. What I'd like to know is what I need to give someone if they request a copy of the code under this licence for my iPhone app? I've been told they are in the build folder and also that they are .o files. I've found some of

Observing a value of a static var in a class?

你。 提交于 2020-01-02 06:33:30
问题 I have a class with a static var where the current online connection status is stored. I want to observe the value of ConnectionManager.online through other classes. I wanted to do this with KVO , but declaring a static variable as dynamic causes an error: class ConnectionManager: NSObject { dynamic static var online = false // adding 'dynamic' declaration causes error: // "A declaration cannot be both 'final' and 'dynamic' } What is a most elegant way of doing this? Update . This my code for

UITableView with UITextField - keep the data even after user scrolls

╄→尐↘猪︶ㄣ 提交于 2020-01-02 06:31:23
问题 I have a UITableView and it has bunch of UITableViewCells - These UITableViewCells have multiple UITextFields inside it. Now every time I scroll up and down - and the UITableViewCells go out of the view - and comes back in whatever text I enter inside the UITextField disappears - What is the best way to make this work? 回答1: create an NSMutableArray which at each position, holds an NSString object which matches each cell. when you config + show each cell in - (UITableViewCell *)tableView:

UITableView with UITextField - keep the data even after user scrolls

蓝咒 提交于 2020-01-02 06:31:08
问题 I have a UITableView and it has bunch of UITableViewCells - These UITableViewCells have multiple UITextFields inside it. Now every time I scroll up and down - and the UITableViewCells go out of the view - and comes back in whatever text I enter inside the UITextField disappears - What is the best way to make this work? 回答1: create an NSMutableArray which at each position, holds an NSString object which matches each cell. when you config + show each cell in - (UITableViewCell *)tableView:

Can my iPad app cause the device to reboot?

a 夏天 提交于 2020-01-02 06:12:31
问题 I have an iPad app that has a process for downloading lots of map files (a couple of gigs of data and 10s of thousands of files). In my most recent test release, the device will sometimes reboot during the download process, (downloads can take a couple of hours). When the app reboots, it does not leave a crash report. We have observed this behavior on both an iPad 1 and an iPad 2 running 4.3.3. The only thing I can think of is we increased the max concurrent threads from 4 to 20 for doing

Cancel block in UIView animateWithDuration

笑着哭i 提交于 2020-01-02 05:40:15
问题 - (void) startLoading { [self blink]; } - (void) blink { [UIView animateWithDuration:0.5 delay: 0.0 options: UIViewAnimationOptionAllowUserInteraction | UIViewAnimationOptionCurveEaseOut animations:^{ //animate stuff } completion:^(BOOL finished){ [self blink]; }]; } - (void) stopLoading { //What goes here? } In my UIView's initWithFrame , I build some loader graphics then start the loader animation from [self startLoading] . The question is now, how do I stop this 'infinite loop'? or what

Creating a UITableView with Taller Cells on the iPhone

我只是一个虾纸丫 提交于 2020-01-02 05:29:13
问题 How can I go about creating a UITableView with taller cells? Basically, I want to create a full screen table with only four cells, but they should take up the entire screen (1/4 each). Assuming this is possible using a UITableView, can it be done both in code and in Interface Builder? And also, can each cell have its own height? --Tim 回答1: For best performance, if all your rows are the same height, use the rowHeight property. It's accessible from both code and Interface Builder. If you want

MPMoviePlayerController shows blank white screen before launch?

二次信任 提交于 2020-01-02 05:29:06
问题 I have an MPMoviePlayerController that I am presenting modally. The video loads fine, however just before the video is launched the screen turns white until it has loaded. How can I prevent this from happening? moviePlayerViewController = [[MPMoviePlayerViewController alloc] initWithContentURL:[NSURL URLWithString:mySTVideo.video_url]]; [self presentModalViewController:moviePlayerViewController animated:YES]; 回答1: First, you should be using this for display the movies: [self

Auto Layout UILabels

纵饮孤独 提交于 2020-01-02 04:55:12
问题 I have three UILabels in my custom UITableViewCell . It might be that some UILabels will be empty ( label.text == @"" ) - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"EventCell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; NSString *key = [[keysArray objectAtIndex:indexPath.section] description]; UILabel *nameLabel = (UILabel *)[cell viewWithTag:100];