Many of my friends are asking how to compile the ffmpeg library in ios. Although there are many tutorials on the Internet, most of them say that the compilation is always unsuccessful, I used ffmpeg in my recent project, so I compiled it again and wrote it down here for your reference.Let's talk about the compiling environment:Mac OS x 10.7.4Xcode4.2.1Ios5.0Ffmpeg0.9.2)The preceding steps are as follows:1:
During iOS development, the asihttprequest library is the most commonly used network library, which is powerful and easy to use.
However, there are several minor issues when using this library. I have been searching and researching on the Internet for a long time. It is now recorded here.Question 1:
One problem is that
Establishment and use of IOS static class library
Create xcode Workspace
Open xcode, select File-> New-> workspace, name the workspace test. xcworkspace, and select the appropriate directory.
Create a static library project
Select File-> New-> Project, select cocoa touch static library as the project template, and name
: (uiapplication *) Application method:
+ (void) Attemptdealloc
{
if ([sharedcldelegate retaincount]! = 1)
return;
[Sharedcldelegate release];
MyInstance = nil;
}
It is worth noting that the above Attemptdealloc method, as its name implies, is simply trying to release the Singleton. If the count of retain is not 1, there are other places where retain messages have been sent to the single case . Consider that the lifetime of a singleton pattern is the
hud.dimbackground=yes;//Setting dialog box text hud.labeltext=@ "Please wait a moment"; // Show dialog Box [HUDshowAnimated:YESwhileExecutingBlock:^{ //What you need to do when the dialog box is displayed sleep (3); Cancel dialog box after }completionblock:^{//operation finishes [HUDremoveFromSuperview]; [hudrelease];hud=nil;}];} - (ibaction) Showprogressdialog: (ID) Sender{hud=[[mbprogresshud alloc]initWithView:self.view];[self.viewaddSubview:HUD]; hud.labeltext=@ "Loading"; //Setup mode is
How to Implement iOS library animation-Part 1 (Part 2)
Status 2-open a book
Now that the animation of state 1 is complete, we can move it to the processing of state 2. Here we will convert a combined book into an opened book. Add the following method under setStartPositionForPush (_: toVC:
func setEndPositionForPush(fromVC: BooksViewController, toVC: BookViewController) { //1 for cell in fromVC.collecti
This article reprinted to Http://blog.csdn.net/cerastes/article/details/38348599iOS third party library download common git1.FMDBHttps://github.com/ccgus/fmdb2.ASIHTTPRequestHttps://github.com/paytronix/ASIHTTPRequest3.AFNetWorkHttps://github.com/AFNetworking/AFNetworking4.MBProgressHUDHttps://github.com/jdg/MBProgressHUD5.AsyncSocketHttps://github.com/roustem/AsyncSocket6.GDataXMLHttps://github.com/neonichu/GDataXML7.cocos2d-iphoneHttps://github.com/
I have previously written an article "using the SoundTouch library in IOS to achieve sound changes ".
Finally, many of my friends posted on their blog that the code can run on the simulator and cannot run on a real machine. They have been busy some time ago, 2013 the rankings of good-looking American TV series do not have time to go through the code and check it out.
Today, I checked the root cause of the p
the real machine Packaging SDK, the libfrsdk.a renamed to libfrsdk2.a Copy to the desktop8. You can then merge two. a files,Open Terminal inputlipo-create/users/huangzengsong/desktop/libfrsdk1.a/users/huangzengsong/desktop/libfrsdk2.a-output/users/ HUANGZENGSONG/DESKTOP/LIBFRSDK.A Enter9. The following two red Arrows point to the file is the final generated SDK, create a new folder Frsdk and then drag the two things in, other projects want to call, the FRSDK folder into the project can beAbove
The solution to the linker command failed with exit code 1 (use-V to see Invocation) error is to find the target --> buildIn phases --> compile sources, all. M files in the third library are added to it, and the compilation is successful;
Cause: when using these third-party class library files, we drag them directly to the project, and xcode does not automatically reference them during compilation. Therefo
IOS tableViewCell adaptive height third-class library, tablecell adaptive height
There are many third-release libraries encapsulated by Daniel in github, including a class library with adaptive cell height.: Https://github.com/gsdios/SDAutoLayout
Model class
CommentsModel
#import "JSONModel.h"#import "getCommentData.h"@interface commentsModel : JSONModel@propert
No more nonsense, just on the back of the operating principle.In peacetime development, several companies may cooperate in a project, but do not want to let another company see their source code, how to do. At this point we can make our own static library.How to make. ANew project: Select cocoa Touch Static LibraryAdd the source code you need to make a static library to the projectSelect the. h file you want to expose.Click on the "+"->new headers on
shown do not have the-OBJC tag set, So now you can successfully use the Unrar4ios.framework on the simulator and the real machine, and if you set the-OBJC tag like me, keep looking down. If-OBJC is set, you should see the following error prompt identifier duplicated, because we dragged the UNRAR4IOS.MM implementation file and the files in the framework are duplicated The specific solution is to first Unrar4ios and unrar4ios.mm the two files removed from the project, to be modified after the
the system.This time maybe you have questions again, why the implementation is-(void) Xxx_viewwillappear: (BOOL) animated{} such aThis is because SEL Swizzledselector = @selector (xxx_viewwillappear:); it's our new way of writing.Can be combined with this blog to see, map is easy to understandhttp://blog.csdn.net/yiyaaixuexi/article/details/9374411And this one is quite clear about SEL.http://blog.csdn.net/fengsh998/article/details/8612969CodeHttps://github.com/holysin/Method_swizzleMethod Swizz
Transfer from http://blog.sina.com.cn/s/blog_13fd67a560102wil5.htmlUsed to record the last created UilabelUILabel *lastlabel = nil;for (int i = 0; i UILabel *label = [UILabel new];Label.textalignment = Nstextalignmentcenter;Label.text = [NSString stringwithformat:@ "~%d~", I];[Self.view Addsubview:label];[Label mas_makeconstraints:^ (Masconstraintmaker *make) {Set heightMake.height.offset (40.0f);Calculates the formula at the top of the distance 60 = the height of the previous distance above the
The
project in the adaptation of iOS 9 can not find Libz.dylib, libconv.dylib, and other dependent libraries in the latest IOS9 in the library inside the dependencies did not let import of the dependent libraries such as libz.dylib, libconv.dylib, etc., how to solve AH. 2015-10-09 16:25 Add Comment share
3 reply
lifei9241 only the suffix name has changed, libz.tdb these same 2015-10-09 16:28 February fal
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.