2013-09-21 99 views

回答

0

没关系,我发现它:

- (id)attribute:(NSString *)attributeName atIndex:(NSUInteger)index effectiveRange:(NSRangePointer)aRange 
+0

你能在评论请添加代码是如何工作的。我需要在我的textview中为不同的对象使用属性字符串:title,detailtitle和其他。 – user2545330

+0

@ user2545330您可以参考[documentation](https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/nsattributedstring_Class/Reference/Reference.html#//apple_ref/occ/) instm/NSAttributedString/attributesAtIndex:effectiveRange :)。这里有很好的解释。 –

相关问题