Weekly Summary

来源:互联网 发布:2017年大数据产业规模 编辑:程序博客网 时间:2024/06/05 10:04

iOS7 and later, we can use UITextView to realize clickable action.

  1. The property selectable must be YES
  2. add link attribute
[attributedString setAttributes:@{NSLinkAttributeName: @"action://just.for.receiving.click"} range:linkRange];
  1. use delegate method
- (BOOL)textView:(UITextView *)textView shouldInteractWithURL:(NSURL *)URL inRange:(NSRange)characterRange

几何相关的操作放到 layoutSubviews 中;

Cocoa & Cocoa Touch

  1. These two frameworks all contain Objective-C runtime;
  2. Cocoa contains Foundation and Appkit, it is used for Mac OSX developing;
    Cocoa Touch contains Foundation and UIKit, it is used for iPhone os developing
    AppKit is the same as UIKit, just being used for different platform;
  3. Foundation defines the root class, NSObject, and it is based on Core Foundation.
0 0
原创粉丝点击