The annual Apple Worldwide Developers Conference (WWDC) took place as scheduled yesterday, but this time it was online. Let’s take a look at what was announced at WWDC.
1. The Definition Of Swift Closures. Closures are described in the Swift development documentation as functional independent modules that can be passed and referenced in your code. Closures in Swift are similar to blocks in C and Objective-C, as well as anonymous functions in other programming languages. Closures are primarily designed to capture and store …
String interpolation is a way to construct new strings that contain constants, variables, literals, and expressions. Each entry of the string literal you inserted is wrapped in parentheses prefixed by a backslash: let x = 3 let str = “\(x) * 5 = \(Double(x) * 5)” print(str) Below is above code execution result. 3 * …
In recent project, i encounter some problems of downloading large file’s break point continuation. This article will summarize different download methods and point out the advantage and disadvantage of each method.
Buttons are the most commonly used and simplest controls in iOS applications and are often used to respond to user actions. Generally, we use UIButton class to implement the button in iOS. This section will focus on adding buttons, beautifying buttons, and how to implement button responses.
This article takes an iOS 11 application as an example to show developers how to create projects using Xcode 10. It also shows some functions of the iOS simulator and interface builder.
How did you set up UI layout in older iOS application development? Write a lot of coordinate calculation code? To ensure a perfect UI effect on both the 3.5-inch and 4.0-inch screens, you sometimes have to write different coordinate calculations for each screen? But now with the iOS auto-layout function, things change for the better.
From article iOS NSURLSession Tutorial you have learnt how to create NSURLSession and related tasks to implement related network task such as send request, download file, upload file etc. This article will show you some examples about those url session tasks.
Objective-C is the primary coding language in iOS development. For every iOS coding beginner, it is important to learn the hello world example first. This article will introduce Objective-C’s basic programming grammar, code structure and commonly used classes with examples.
NSURLSession was introduced with the release of iOS7 in 2013, Apple is positioning it as a replacement for NSURLConnection. Now, the most widely used third-party network frameworks, such as AFNetworking, SDWebImage are all using NSURLSession.