Tag:objective-c

  • Objective-C Specification Guide

    Time:2022-12-6

    introduce All specifications about this programming language, if not written here, are in Apple’s documentation: Objective-C programming language Cocoa Fundamentals Guide Cocoa Coding Guidelines iOS Application Programming Guide Table of contents dot syntax spacing conditional judgment Ternary operator error handling method variable name note Init and Dealloc Literal CGRect function constant enumerated type bitmask private […]

  • Apple Signature Software

    Time:2022-12-6

    ios developer tool, ios enterprise signature tool, green software, offline offline, free to use,Apple Developer Center, Apple Developer to obtain P12 and description, only need p12 file and provision description fileSupport IPA signature plus time lock, support time control, ipa batch unlock functionThe software runs on the Windows platform and can be used without a […]

  • IOS defines a detailed explanation of gesture listeners, using UIGestureRecognizer to respond to pinch, rotate, pan, click, and long press gesture events

    Time:2022-12-5

    In IOS, we can monitor touch events through UITouch, but it is very troublesome for UITouch to monitor gesture events such as pinch, rotate, and long press. Provided in IOSUIGestureRecognizerThe subclasses of help us implement special gesture monitoring such as pinching and rotation. And a view can add multiple different gesture listeners. Open userInteractionEnabled UIView […]

  • Brad J. Cox, the father of Objective-C, who promoted the development of Apple’s software ecosystem, passed away

    Time:2022-12-4

    According to foreign media reports, Dr. Brad J. Cox, the father of the programming language Objective-C, has died at his home recently at the age of 77. Objective-C is a general-purpose, high-level, object-oriented programming language that can be implemented on top of existing C compilers without writing an entirely new compiler. Steve Jobs used Objective-C […]

  • Use of IOS single-line text input box UITextField

    Time:2022-12-4

    UITextField inherits UIControl class, only supports single-line input and display, and can input password type. Support implementing proxy UITextFieldDelegate Attributes name type illustrate Defaults text NSString text input value textColor UIColor text color UIFont UIFont text size textAlignment NSTextAlignment text direction NSLeftTextAlignment borderStyle UITextBorderStyle border style UITextBorderStyleNone placeholder NSString prompt text clearsOnBeginEditing BOOL Clear content […]

  • One article explains OCLint source code analysis and workflow analysis

    Time:2022-12-3

    target audience Frontline Engineer, Architect Estimated reading time 15-20min 🐢 The rewards of completing the reading Understand the principles of static code review techniques Understand the static code review technical workflow I have to mention Clang Since OCLint is a static code analysis tool based on Clang tool, I have to mention Clang.Clang, as a […]

  • IOS modal pop-up window and operation version use UIAlertController

    Time:2022-12-3

    After IOS8, UIAlertView uses UIAlertController to implement modal window and operation panel. The use of UIAlertController is very different from that of UIAlerView. It actually separates the content of the pop-up window from the display method and button list. It is very simple to implement. as follows 1. Call the static method to create the […]

  • IOS UIViewController API, detailed explanation of life cycle

    Time:2022-12-2

    In the UIKit framework there is only one root mapping controller. The view controller is used to manage the interface and handle the class objects of the interface. The root view controller must be created before the program starts. All view controllers need to be customized and must inherit from UIViewController. By default, the newly […]

  • ios add multiple cells to a xib

    Time:2022-12-2

    ios one xib registers multiple cells 1. Create multiple Cells When I used xib to create UITableviewCell for the first time, I only created one Cell in a xib file. In actual business, it is often necessary to use multiple different Cell styles in a list, which requires creating N.h .m .xib files. And the […]

  • Douyin Quality Construction – iOS Startup Optimization “Principles”

    Time:2022-12-1

    Source Author: Bytedance Technical Team forewordStartup is the first impression of the app on the user. The slower the start-up, the higher the probability of user loss. A good start-up speed is an indispensable part of the user experience. The knowledge points involved in startup optimization are very multifaceted and wide, and it is difficult […]

  • iOS image preview, zoom in and zoom out

    Time:2022-11-30

    train of thought Image preview, give priority to basic controls UIImageView, UIButton Different modes may need to be set in the image preview, UIImageView is given priority typedef NS_ENUM(NSInteger, UIViewContentMode) { UIViewContentModeScaleToFill, UIViewContentModeScaleAspectFit, UIViewContentModeScaleAspectFill, UIViewContentModeRedraw, UIViewContentModeCenter, UIViewContentModeTop, UIViewContentModeBottom, UIViewContentModeLeft, UIViewContentModeRight, UIViewContentModeTopLeft, UIViewContentModeTopRight, UIViewContentModeBottomLeft, UIViewContentModeBottomRight, } Ideas for zooming in and out of pictures: 1. Gesture […]

  • iOS camera system camera

    Time:2022-11-29

    Taking pictures is frequently used in the app, and the entry-level directly calls the system to take pictures Ideas: The system takes pictures using UIImagePickerController 1. Set the plist, otherwise there is no permission and an error will be reported 2. Determine the camera and obtain the permission, otherwise the pop-up interface will be black […]