IOS-UIView-set the background image in four ways: iosuiview background image1. Set the background image of UIView1. Use the image as the background color of the UIView. This method occupies too much memory and is not recommended.// 1. imageNamed
Code note: the button is underlined and the button is underlined.
I ,.
2. Engineering Drawing.
3. Code.
RootViewController. h
RootViewController. m
-(Void) viewDidLoad {[super viewDidLoad]; // Do any additional setup after loading the view. //
IOS advanced development -- cell long-press event Implementation of CollectionView
When we use TableView, operations such as clicking or sliding Delete are performed by default, but native operations such as long-clicking are not performed. In
IOS development diary 50-text-to-speech (TTS), 50-TTS
Today, the blogger has a text-to-speech (TTS) Demand and encountered some difficulties. I would like to share with you the hope to make common progress.
Text-To-Speech technology, also known as
IOS Singleton mode and iOS Mode
"Singleton Mode"Is one of the most commonly used design patterns in iOS. The Singleton mode effectively solves the problem of data sharing between different codes without passing any parameters. Singleton classes
Simple music player production and music player
Make a simple music player:
1. Functions: music list, play, pause, last song, next song, progress bar (display progress time, control progress), random play, single loop, sequential play, and lyrics
IOS: swift gets the name of the Wi-Fi connection and the mac address of the ap.
After searching for the Internet for half a day, they all use various copy versions, not the swift version. After several experiments, we finally completed integration.
Binding KVC-based JSON to data objects on iOS platform
On the iOS platform, it is not difficult to manipulate JSON data. However, we still have a simpler solution, using KVC, the full name is Key-Value Coding.
Assume that the developer (you) has
IOS-UI-UILable, iosuilabel automatic line feed
// Used for text display
UILabel * label = [[UILabel alloc] initWithFrame: CGRectMake (10, 30,200,300)];
// Use the color tester to select the color
Label. backgroundColor = [UIColor colorWithRed: 26/255
Block in OC, OCBlock
Block encapsulates a piece of code that can be executed at any time
A Block can be used as a function parameter or return value, and it can contain an input parameter or return value.
Apple officially recommends using block as
GPUImagePicture class for GPUImage API documentation, gpuimage
GPUImagePicture is a type of static image processing operation. It can be a static image to be processed, or an image used as a texture. It is called to send a processImage message to it
Memory Model, java Memory Model
NSString * someString = @ "The string ";
// The Memory occupied by objects is always allocated to the heap space, rather than the stack space. You cannot allocate Objective-C objects to stacks.
// NSString
[Reading Notes] iOS network-communication between applications, Reading Notes ios
I. URL Scheme
The URL scheme has three main purposes: switch to another application based on the logic of the existence or absence of other applications on the device,
OC, oc LanguageOverview
Introduction
Core animation provides a very powerful set of animation APIs, which can efficiently achieve most brilliant animation effects.
Notes
Core animation operations are executed in child threads
Differences between memory overflow and Memory leakage
Memory overflow out of memory means that the program does not have enough memory space to use when applying for memory. For example, if an integer is applied, however, if a long value is saved
Objective-c series-@ Property & point syntax, objective-c
// Explain the meanings of modifiers in parentheses behind the property:
// Nonatomic non-thread-safe non-atomic operations features: high efficiency of operation variables
// Atomic
OC, oc LanguageIntroduction
Each UI control automatically creates a layer (root layer) by default, that is, each UI control corresponds to at least one layer.
Each UIView is associated with a CALayer by default. We can call this Layer as the
OC, oc LanguageUse the system method to monitor the network status
The system monitors the network status through the notification mechanism.
Steps for network status monitoring
Define Reachability member variables to save the network
IOS sandbox and clear cache, ios sandbox Cache
SandBox is a security system. Each application we develop has a corresponding sandbox folder on the device. The current program can only read files in its sandbox folder, you cannot access sandbox of
OC, oc LanguageEffect
Procedure
Draw a rectangle and a alertView is displayed, prompting whether to save the image
Click "yes" to save the image to the album.
View saved images in the album
Implementation
Add an imageView to
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.