1. UIWindow:
1. There are three levels of UIWindowLevel:
UIWindowLevleNormal,
UIWindowLevelAlert;
UIWindowLevelStatusBar;
Among them, the normal level is the lowest, but the statusBar, the highest level is alertView, alertView is generally used to
When writing iOS programs in non-ARC mode, the program memory leakage is inevitable. In the future, we will generally optimize the memory. You can use two common memory optimization methods.
1. Analyze: Static Analysis of Memory leakage. Click
Usually used to delete the cache, calculate the cache size // the size of a single file-(long) fileSizeAtPath :( NSString *) filePath {NSFileManager * manager = [NSFileManager defamanager]; if ([manager fileExistsAtPath: filePath]) {return [[manager
Recording is performed on ios devices. The format of the recording file is caf. However, this format cannot be played on many devices. To adapt to the playback function of the terminal, caf is converted to an mp3 file.
When recording a caf file, you
There are many applications in the dynamic proxy mode, especially when the agent class cannot be modified, it is very convenient to handle some methods, such as logging or capturing exceptions. You only need to modify the client (scenario class)
In the project, we need to have only one instance globally to save unnecessary memory. In this case, we need to use the single instance in to generate objects.
In this case, the code of the Singleton is encapsulated into a macro, so that we can use
This chapter first introduces UICollectionView and its common methods, and then combines an instance to learn how to use UICollectionView.
The UICollectionView and UICollectionViewController classes are newly introduced APIS of iOS6. They are used
1 Preface
We have learned so many design patterns before, all of which are used to improve the "reusability" and "scalability" of software systems. Today, let's take a look at the architecture design of IOS applications.
Reprinted please indicate
1. desired effect: When you browse the article, when you slide down, the navigationBar and toolbar are hidden. When you reach the end, move up and the navigationBar and toolbar are displayed again. 2. Idea: first, webview is used to display the
This article is based on the most complete iOS DIY framework tutorial (I) in history.
1. Create a static library project:
2: Get your favorite name:
3. Delete the Target in the project generated by the Wizard:
3. Delete the project folder
Question address: Click to open the link
C ++ code:
#include
#include
#include
#include #include
#include
#include
#include
using namespace std;int main(){int
Method 1 (Code setting ):
Now ios7 has been changed to transparent without occupying the screen height. The method for hiding and displaying is as follows:In the subclass of uiviewcontroller, call:
If ([self respondsToSelector: @ selector
Review
[Cocos2d-x IOS game development-fishing talents 1] content Introduction
Review in the previous section
[Cocos2d-x IOS game development-city parkour 1] parkour game Introduction
Review in the previous section
Cocos2d-X game
IOS Project Development Layout 4
Add the UITabViewController control and the top scroll bar based on the previous frame. First, check the file layout as shown in Figure
1. Add the following to DemMainViewController:
- (void)addMainController{ _
First, go to the official documentation.
I was not responsible for the Bluetooth communication project recently, but my colleague in charge of the project had to bite his teeth to learn. Whining .....
Now we will summarize the key points of
1. requirement: If you want to expand an additional method for a class without changing the code, you can use inheritance and Classification 2. category: You can expand some object methods or class methods for a class without modifying the original
Reasons for multithreading in iOS:
1. In iOS, only the main thread has the right to directly modify the Ui.
2. The main thread stack of the iPhone is 1 M, and the newly opened thread stack is 512 K.
3. Multi-task, multi-core, efficiency, and user
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.