Sha256: e9fffce4f4c4a537267aed9b1e5a01d412d8459846bfc707c38d0472dbdf006a
Contents?: true
Size: 483 Bytes
Versions: 31
Compression:
Stored size: 483 Bytes
Contents
class NSData # converts NSData into an NSString using any encoding, default is UTF8 # @return [NSString] def nsstring(encoding=nil) if encoding return NSString.stringWithCString(self.bytes, encoding:encoding) else return NSString.stringWithUTF8String(self) end end # @return [UIImage] def uiimage(scale=nil) if scale return UIImage.imageWithData(self, scale:scale) else return UIImage.imageWithData(self) end end end
Version data entries
31 entries across 31 versions & 1 rubygems