Get the screen size in IOS, and get the screen size in IOS
// App size, remove the status bar
CGRect appRect = [UIScreen mainScreen]. applicationFrame;
NSLog (@ "% f, % f", appRect. origin. x, appRect. origin. y, appRect. size. width, appRect.
Various values: morphvoxpro values
NSArray and NSDictionary can only store objects, but cannot directly store any basic types of data, such as int, float, or struct. But you can use objects to encapsulate basic values. For example, encapsulate
IOS event Method
Recent work has found that the Foundation is not reliable. You need to consolidate the iOS event response methods. The simplest user clicks the screen with his finger.
In fact, it is concluded that the event will be passed up from
Touch event UITouch application, touch event uitouch
Because both UIView and UIViewController are inherited and UIResponder, there is a UITouch event. When a user clicks the screen, a touch event is triggered.
With the UITouch event, we can monitor
Delete unused images in ios project using scripts
I recently learned a major trick in reading Tang Qiao's "iOS development advanced": using scripts to delete unused images in ios. (there is a small problem in the paper. Refer to the issue on github:
[IOS Weibo project, [iOS blog ProjectGithub: https://github.com/hellovoidworld/HVWWeiboA. Light gray background of Weibo1. Requirements
The background color needs to be set for the Weibo part.
Use an image as the background
2. IdeasMethods:
Basic knowledge of IOS development-fragment 8, basic knowledge of ios-Fragment
1: UIImageView is used as the background, but a button or UITextField cannot be placed on the background.
Solution: the default value of UserInteractionEnabled in
IOS: OpenURL method of the UIApplication class
1. Call the app store Interface
In actual development, we often recommend other applications and recommend our own paid software, so we need to directly connect to the corresponding page of the app
Japanese network radio application source code, Japanese network radio source code
Japanese network radio application source code. This application has excellent compatibility and supports iPhone and iPad versions. It is also a Japanese
[IOS] a small example of NSURLConnection
Directly go to the code...
NSURLSession can be used after iOS7, but NSURLConnection is used for both iOS6 and iOS6.
@interface ViewController()
@property (nonatomic,strong) NSMutableData
Ios source code and ios source code
Game source code: the game is a multi-level cocos2d-based iPad mouse game source code, which is also a high-quality mouse game source code, can have a gradually rising level settings, you can set up some
The property string NSAttributeString and NSString of ios development are converted to each other and contain images.
The following describes how to convert common attribute strings NSAtrributeString and NSString:
1. Replace a common string with
Ios FMDB class library usage learning notes
This article is excerpted from: apsaradb for iOS development-FMDB
What is FMDB?
FMDB is the sqlite database framework of the ios platform.
FMBD encapsulates the C language API of sqlite in oc
Pointer usage in Swift
Apple expects pointers in Swift to minimize their chances of appearance. Therefore, pointers in Swift are mapped to a generic type and abstract. To some extent, this makes it difficult to use pointers in Swift, especially
Introduction to MVVM Architecture Design and team collaboration in iOS developmentI want to write this blog today to serve as a reference. I want to share my thoughts with you and learn from each other. I hope you can criticize and correct the
IOS development-Table storeAccording to the above concept, the page layout is about a 3*3 9-square grid. It is generally used to select a number exercise, and there is no special way to get it done. In the Demo implementation, the above interface is
Login verification for ios
We can use the third framework AFNetworking to communicate with the server using its post method. If the userId returned by the server is 10, the operation succeeds. If the returned userId is 11, the user name or password
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service