Objective-C Notes for Professionals book

    Amazing collection of free programming books

    收集中
    免费
    Amazing collection of free programming books

    The Notes for Professionals book is compiled from Stack Overflow Documentation, the content is written by the beautiful people at Stack Overflow. Text content is released under Creative Commons BY-SA. See credits at the end of this book whom contributed to the various chapters. Images may be copyright of their respective owners unless otherwise specified

    Book created for educational purposes and is not affiliated with group(s), company(s) nor Stack Overflow. All trademarks belong to their respective company owners

    https://goalkicker.com/

    章节目录

    1-1Content list
    1-2About
    1-3Chapter 1: Getting started with Objective-C Language
    1-4Section 1.1: Hello World
    1-5Chapter 2: Basic Data Types
    1-6Section 2.1: SEL
    1-7Section 2.2: BOOL
    1-8Section 2.3: id
    1-9Section 2.4: IMP (implementation pointer)
    1-10Section 2.5: NSInteger and NSUInteger
    1-11Chapter 3: Enums
    1-12Section 3.1: typedef enum declaration in Objective-C
    1-13Section 3.2: Converting C++ std::vector<Enum> to an Objective-C Array
    1-14Section 3.3: Defining an enum
    1-15Chapter 4: Structs
    1-16Section 4.1: Defining a Structure and Accessing Structure Members
    1-17Section 4.2: CGPoint
    1-18Chapter 5: Classes and Objects
    1-19Section 5.1: Dierence between allocation and initialization
    1-20Section 5.2: Creating classes with initialization values
    1-21Section 5.3: Specifying Generics
    1-22Section 5.4: Singleton Class
    1-23Section 5.5: The "instancetype" return type
    1-24Chapter 6: Inheritance
    1-25Section 6.1: Car is inherited from Vehicle
    1-26Chapter 7: Methods
    1-27Section 7.1: Class methods
    1-28Section 7.2: Pass by value parameter passing
    1-29Section 7.3: Pass by reference parameter passing
    1-30Section 7.4: Method parameters
    1-31Section 7.5: Create a basic method
    1-32Section 7.6: Return values
    1-33Section 7.7: Calling methods
    1-34Section 7.8: Instance methods
    1-35Chapter 8: Properties
    1-36Section 8.1: Custom getters and setters
    1-37Section 8.2: Properties that cause updates
    1-38Section 8.3: What are properties?
    1-39Chapter 9: Random Integer
    1-40Section 9.1: Basic Random Integer
    1-41Section 9.2: Random Integer within a Range
    1-42Chapter 10: BOOL / bool / Boolean / NSCFBoolean
    1-43Section 10.1: BOOL/Boolean/bool/NSCFBoolean
    1-44Section 10.2: BOOL VS Boolean
    1-45Chapter 11: Continue and Break!
    1-46Section 11.1: Continue and Break Statement
    1-47Chapter 12: Key Value Coding / Key Value Observing
    1-48Section 12.1: Most Common Real Life Key Value Coding Example
    1-49Section 12.2: Querying KVC Data
    1-50Section 12.3: Collection Operators
    1-51Section 12.4: Key Value Observing
    1-52Chapter 13: NSString
    1-53Section 13.1: Encoding and Decoding
    1-54Section 13.2: String Length
    1-55Section 13.3: Comparing Strings
    1-56Section 13.4: Splitting
    1-57Section 13.5: Searching for a Substring
    1-58Section 13.6: Creation
    1-59Section 13.7: Changing Case
    1-60Section 13.8: Removing Leading and Trailing Whitespace
    1-61Section 13.9: Joining an Array of Strings
    1-62Section 13.10: Formatting
    1-63Section 13.11: Working with C Strings
    1-64Section 13.12: Reversing a NSString Objective-C
    1-65Chapter 14: NSArray
    1-66Section 14.1: Creating Arrays
    1-67Section 14.2: Accessing elements
    1-68Section 14.3: Using Generics
    1-69Section 14.4: Reverse an Array
    1-70Section 14.5: Converting between Sets and Arrays
    1-71Section 14.6: Converting NSArray to NSMutableArray to allow modification
    1-72Section 14.7: Looping through
    1-73Section 14.8: Enumerating using blocks
    1-74Section 14.9: Comparing arrays
    1-75Section 14.10: Filtering Arrays With Predicates
    1-76Section 14.11: Sorting array with custom objects
    1-77Section 14.12: Sorting Arrays
    1-78Section 14.13: Filter NSArray and NSMutableArray
    1-79Section 14.14: Add objects to NSArray
    1-80Section 14.15: Finding out the Number of Elements in an Array
    1-81Section 14.16: Creating NSArray instances
    1-82Chapter 15: NSMutableArray
    1-83Section 15.1: Sorting Arrays
    1-84Section 15.2: Creating an NSMutableArray
    1-85Section 15.3: Adding elements
    1-86Section 15.4: Insert Elements
    1-87Section 15.5: Deleting Elements
    1-88Section 15.6: Move object to another index
    1-89Section 15.7: Filtering Array content with Predicate
    1-90Chapter 16: NSDictionary
    1-91Section 16.1: Create
    1-92Section 16.2: Fast Enumeration
    1-93Section 16.3: Creating using literals
    1-94Section 16.4: Creating using dictionaryWithObjectsAndKeys:
    1-95Section 16.5: NSDictionary to NSArray
    1-96Section 16.6: NSDictionary to NSData
    1-97Section 16.7: NSDictionary to JSON
    1-98Section 16.8: Creating using plists
    1-99Section 16.9: Setting a Value in NSDictionary
    1-100Section 16.10: Getting a Value from NSDictionary
    1-101Section 16.11: Check if NSDictionary already has a key or not
    1-102Section 16.12: Block Based Enumeration
    1-103Chapter 17: NSMutableDictionary
    1-104Section 17.1: NSMutableDictionary Example
    1-105Section 17.2: Removing Entries From a Mutable Dictionary
    1-106Chapter 18: NSDate
    1-107Section 18.1: Convert NSDate that is composed from hour and minute (only) to a full NSDate
    1-108Section 18.2: Converting NSDate to NSString
    1-109Section 18.3: Creating an NSDate
    1-110Section 18.4: Date Comparison
    1-111Chapter 19: NSURL
    1-112Section 19.1: Create
    1-113Section 19.2: Compare NSURL
    1-114Section 19.3: Modifying and Converting a File URL with removing and appending path
    1-115Chapter 20: NSUrl send a post request
    1-116Section 20.1: Simple POST request
    1-117Section 20.2: Simple Post Request With Timeout
    1-118Chapter 21: NSData
    1-119Section 21.1: Create
    1-120Section 21.2: NSData and Hexadecimal String
    1-121Section 21.3: Get NSData length
    1-122Section 21.4: Encoding and decoding a string using NSData Base64
    1-123Chapter 22: NSPredicate
    1-124Section 22.1: Filter By Name
    1-125Section 22.2: Find movies except given ids
    1-126Section 22.3: Find all the objects which is of type movie
    1-127Section 22.4: Find Distinct object ids of array
    1-128Section 22.5: Find movies with specific ids
    1-129Section 22.6: Case Insensitive comparison with exact title match
    1-130Section 22.7: Case sensitive with exact title match
    1-131Section 22.8: Case Insensitive comparison with matching subset
    1-132Chapter 23: NSRegularExpression
    1-133Section 23.1: Check whether a string matches a pattern
    1-134Section 23.2: Find all the numbers in a string
    1-135Chapter 24: NSJSONSerialization
    1-136Section 24.1: JSON Parsing using NSJSONSerialization Objective-C
    1-137Chapter 25: NSCalendar
    1-138Section 25.1: System Locale Information
    1-139Section 25.2: Initializing a Calendar
    1-140Section 25.3: Calendrical Calculations
    1-141Chapter 26: NSAttributedString
    1-142Section 26.1: Using Enumerating over Attributes in a String and underline part of string
    1-143Section 26.2: Creating a string that has custom kerning (letter spacing) editshare
    1-144Section 26.3: Create a string with text struck through
    1-145Section 26.4: How you create a tri-color attributed string
    1-146Chapter 27: NSTimer
    1-147Section 27.1: Storing information in the Timer
    1-148Section 27.2: Creating a Timer
    1-149Section 27.3: Invalidating a timer
    1-150Section 27.4: Manually firing a timer
    1-151Chapter 28: NSObject
    1-152Section 28.1: NSObject
    1-153Chapter 29: NSSortDescriptor
    1-154Section 29.1: Sorted by combinations of NSSortDescriptor
    1-155Chapter 30: NSTextAttachment
    1-156Section 30.1: NSTextAttachment Example
    1-157Chapter 31: NSCache
    1-158Section 31.1: NSCache
    1-159Chapter 32: NSUserDefaults
    1-160Section 32.1: Simple example
    1-161Section 32.2: Clear NSUserDefaults
    1-162Chapter 33: Subscripting
    1-163Section 33.1: Subscripts with NSArray
    1-164Section 33.2: Custom Subscripting
    1-165Section 33.3: Subscripts with NSDictionary
    1-166Chapter 34: Low-level Runtime Environment
    1-167Section 34.1: Augmenting methods using Method Swizzling
    1-168Section 34.2: Attach object to another existing object (association)
    1-169Section 34.3: Calling methods directly
    1-170Chapter 35: Fast Enumeration
    1-171Section 35.1: Fast enumeration of an NSArray with index
    1-172Section 35.2: Fast enumeration of an NSArray
    1-173Chapter 36: Categories
    1-174Section 36.1: Conforming to protocol
    1-175Section 36.2: Simple Category
    1-176Section 36.3: Declaring a class method
    1-177Section 36.4: Adding a property with a category
    1-178Section 36.5: Create a Category on XCode
    1-179Chapter 37: Protocols
    1-180Section 37.1: Optional and required methods
    1-181Section 37.2: Checking existence of optional method implementations
    1-182Section 37.3: Forward Declarations
    1-183Section 37.4: Conforming to Protocols
    1-184Section 37.5: Basic Protocol Definition
    1-185Section 37.6: Check conforms Protocol
    1-186Chapter 38: Protocols and Delegates
    1-187Section 38.1: Implementation of Protocols and Delegation mechanism
    1-188Chapter 39: Blocks
    1-189Section 39.1: Block Typedefs
    1-190Section 39.2: Blocks as Properties
    1-191Section 39.3: Blocks as local variables
    1-192Section 39.4: Blocks as Method Parameters
    1-193Section 39.5: Defining and Assigning
    1-194Chapter 40: XML parsing
    1-195Section 40.1: XML Parsing
    1-196Chapter 41: Declare class method and instance method
    1-197Section 41.1: How to declare class method and instance method
    1-198Chapter 42: Predefined Macros
    1-199Section 42.1: Predefined Macros
    1-200Chapter 43: Grand Central Dispatch
    1-201Section 43.1: What is Grand central dispatch
    1-202Chapter 44: Format-Specifiers
    1-203Section 44.1: Integer Example - %i
    1-204Chapter 45: Logging
    1-205Section 45.1: Logging
    1-206Section 45.2: NSLog Output Format
    1-207Section 45.3: Removing Log Statements from Release Builds
    1-208Section 45.4: Logging Variable Values
    1-209Section 45.5: Empty message is not printed
    1-210Section 45.6: Using __FUNCTION __
    1-211Section 45.7: NSLog vs printf
    1-212Section 45.8: Logging NSLog meta data
    1-213Section 45.9: NSLog and BOOL type
    1-214Section 45.10: Logging by Appending to a File
    1-215Chapter 46: Error Handling
    1-216Section 46.1: Error & Exception handling with try catch block
    1-217Section 46.2: Asserting
    1-218Chapter 47: Modern Objective-C
    1-219Section 47.1: Literals
    1-220Section 47.2: Container subscripting
    1-221Chapter 48: Singletons
    1-222Section 48.1: Using Grand Central Dispatch (GCD)
    1-223Section 48.2: Creating Singleton and also preventing it from having multiple instance using alloc/init, new
    1-224Section 48.3: Creating Singleton class and also preventing it from having multiple instances using alloc/init
    1-225Chapter 49: Multi-Threading
    1-226Section 49.1: Creating a simple thread
    1-227Section 49.2: Create more complex thread
    1-228Section 49.3: Thread-local storage
    1-229Chapter 50: Unit testing using Xcode
    1-230Section 50.1: Note:
    1-231Section 50.2: Testing a block of code or some method:
    1-232Section 50.3: Testing asynchronous block of code:
    1-233Section 50.4: Measuring Performance of a block of code:
    1-234Section 50.5: Running Test Suits:
    1-235Chapter 51: Memory Management
    1-236Section 51.1: Memory management rules when using manual reference counting
    1-237Section 51.2: Automatic Reference Counting
    1-238Section 51.3: Strong and weak references
    1-239Section 51.4: Manual Memory Management
    1-240Credits
    1-241You may also like

    常见问答

    您可以透過手機、平板或是電腦登入 HiSKIO 平台,在【我的學習】>【我的書籍】頁面,選擇想看的電子書。

    猜你喜欢

    用户评价

    | 收集中

    销售方案