Skip to content

c4arl0s/iOSProgrammingBasicObjectiveCContentIndex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

At a glance: Notes
  1. 1. 8AddressesAndPointers-ObjectiveC
  2. 2. To understand the way pointers operate, you first must understand the concept of indirection.
  3. 3. This unary operator, known as the address operator, makes a pointer to a variable in Objective-C.
  4. 4. Addresses
  5. 5. console output Addresses
  6. 6. In a computer, everything is stored in memory, and thus everything has an address.
  7. 7. Console output
  8. 8. Getting addresses.
  9. 9. Use the * operator on the left-hand side of an assignment to store data at a particular address:
  10. 10. Storing addresses in pointers.
  11. 11. Getting the data at an address.
  12. 12. How many bytes does this data type occupy ?
  13. 13. NULL
  14. 14. another example
  15. 15. Stylish pointer declarations.
  16. 16. A function is not able to change the actual parameters value.
At a glance: Notes
  1. 1. 9PassByReference-ObjectiveC
  2. 2. Writing pass-by-reference functions
  3. 3. Avoid dereferencing NULL
At a glance: Notes
  1. 1. A typedef defines an alias for a type declaration and allow us to use it more like the usual data types.
  2. 2. Now pass a Person structure to another function.
At a glance: Notes
  1. 1. 11TheHeap
  2. 2. So far, your programs have only used memory that has been in frames on the stack.
  3. 3. Programmers often use the word buffer to mean a long line of bytes of memory.
  4. 4. You claim a buffer of memory using the function malloc().
  5. 5. When you’re done using the buffer, you call the function free()
  6. 6. We need a chunk of memory big enough to hold 1,000 floats.
  7. 7. You can also use malloc() to claim space for a struct on the heap.
  8. 8. Notice the operator ->
At a glance: Notes
  1. 1. Creating and using your first object
  2. 2. Message anatomy
  3. 3. Objects in memory
  4. 4. id
  5. 5. Challenge
At a glance: Notes
  1. 1. Nesting message sends
  2. 2. Multiple arguments
  3. 3. Sending messages to nil
  4. 4. Challenge
At a glance: Notes
  1. 1. Challenge
At a glance: Notes
  1. 1. NSArray
  2. 2. NSMutableArray
  3. 3. Challenge
At a glance: Notes
  1. 1. Your First Class
  2. 2. Accessor methods
  3. 3. Dot notation
  4. 4. Properties
  5. 5. self
  6. 6. Multiple files
  7. 7. Challenge
At a glance: Notes
  1. 1. Overriding Methods
  2. 2. super
  3. 3. Challenge
At a glance: Notes
  1. 1. Object Ownership and ARC
  2. 2. Creating the Asset Class
At a glance: Notes
  1. 1. Retain Cycles
  2. 2. Weak References
  3. 3. Zeroing of Weak references
  4. 4. Manual Reference Counting and ARC History
  5. 5. New basic example of Retain Cycles
  6. 6. Retain count rules
At a glance: Notes
  1. 1. NSArray / NSMutableArray
  2. 2. Immutable objects
  3. 3. Sorting
  4. 4. Filtering
  5. 5. NSSet/NSMutableSet
  6. 6. NSDictionary/NSMutableDictionary
  7. 7. C primitive types
  8. 8. Collections and nil
At a glance: Notes
  1. 1. Preprocessor directives
  2. 2. #include and #import
  3. 3. #define
  4. 4. Global Variables
  5. 5. enum
  6. 6. #define vs global variables
At a glance: Notes
  1. 1. Writing an NSString to a file
  2. 2. NSError
  3. 3. Reading files with NSString
  4. 4. Writing an NSData object to a file
  5. 5. Reading an NSData from a file
At a glance: Notes
  1. 1. Target-Action
  2. 2. Helper Objects
  3. 3. Notifications
  4. 4. Which to use
  5. 5. Callbacks and object ownership
At a glance: Notes
  1. 1. 25Protocols-ObjectiveC
  2. 2. It is importan to remember that who you are is different from what you do
  3. 3. The class of an object is different from its role in a working system.
  4. 4. We’ve talked about how to specify a class. Is it possible to specify a role?
  5. 5. How did the developer who created the UITableView class specify the role of UITableView’s data source? He created a protocol.
  6. 6. A protocol is a list of method declarations.
  7. 7. The data source protocol for UITableView is named UITableViewDataSource
  8. 8. Do you remember an instance of Logger the delegate of an NSURLConnection object ?
At a glance: Notes
  1. 1. Challenge

I created a basic app by code (XIB files or storyboards are not used)

At a glance: Notes
  1. 1. 27YourFirstiOSApplication
  2. 2. The run loop waits for events
  3. 3. Model View Controller
  4. 4. The UIApplication Object
  5. 5. The application delegate
  6. 6. Watch out about this after continue with the project
  7. 7. AppDelegate.h
  8. 8. AppDelegate.m
  9. 9. pragma mark - Application Delegate callbacks
  10. 10. iOS Documentation: Responding to Notifications and Events
  11. 11. Setting up the Views
  12. 12. Running on the iOS Simulator
  13. 13. Adding new tasks
  14. 14. Saving task data
  15. 15. What is the first responder bussines ?
  16. 16. Fix object sizes
  17. 17. When you tap a cell, hide keyboard
  18. 18. Disable insert button when taskTextField is empty and present an alert momentary
At a glance: Notes
  1. 1. Edit BNRDocument.h
  2. 2. A look at Interface Builder
  3. 3. Edit BNRDocument.xib
  4. 4. Setting the autosizing mask
  5. 5. Making connections
  6. 6. Revisiting MVC
  7. 7. Edit BNRDocument.m
  8. 8. Challenges
At a glance: Notes
  1. 1. Writing init methods
  2. 2. A basic init method
  3. 3. Using accessors
  4. 4. init methods that take arguments
  5. 5. Deadly init methods
At a glance: Notes
  1. 1. Property attributes
  2. 2. Mutability
  3. 3. Lifetime specifiers
  4. 4. copy
  5. 5. More about copying
  6. 6. Advice on atomic vs. nonatomic
  7. 7. Key-value coding
  8. 8. Non object types
At a glance: Notes
  1. 1. Blocks
  2. 2. Defining blocks
  3. 3. Using blocks
  4. 4. Declaring a block variable
  5. 5. Assigning a block
  6. 6. Passing in a block
  7. 7. typedef
  8. 8. Return values
  9. 9. Memory management
  10. 10. The block-based future
  11. 11. Challenges - Anonymous block
  12. 12. NSNotificationCenter
  13. 13. Retain Cycles and Blocks
At a glance: Notes
  1. 1. char
  2. 2. char *
  3. 3. String literals
  4. 4. Converting to and from NSString
  5. 5. Challenge

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published