随笔分类 - iOS tips
摘要:只需要在上层视图的View中添加这个代码就可以了。
        阅读全文
                
摘要:shadowOddset (3,10) shadowOpacity (0.32) shadowRadius (13) 效果比较好。。。。
        阅读全文
                
摘要:1、 三角函数 double sin (double);正弦 double cos (double);余弦 double tan (double);正切 2 、反三角函数 double asin (double); 结果介于[-PI/2, PI/2] double acos (double); 结果
        阅读全文
                
摘要:设置属性后,然后根据文本自动多行显示,无需设置标签高度约束 1 属性preferredMaxLayoutWidth,如:label.preferredMaxLayoutWidth = (WidthScreen - 10.0 * 2); 2 方法setContentHuggingPriority:fo
        阅读全文
                
摘要:-boundingRectWithSize:options:attributes:context:用法 - (CGSize)sizeWithFont:(UIFont *)font constrainedToSize:(CGSize)size lineBreakMode:(NSLineBreakMod
        阅读全文
                
摘要:一般在项目中,我们要生成一个不重复的唯一的表示符作为文件或者路径名称的时候,可以使用CFUUIDRef 和CFStringRef来生成一个唯一的标识: 代码如下: - (NSString *)createCUID:(NSString *)prefix{ NSString * result; CFUU
        阅读全文
                
摘要:http://blog.csdn.net/lwjok2007/article/details/47058101 iOS调JS http://blog.csdn.net/lwjok2007/article/details/47058795 JS调OC
        阅读全文
                
摘要:NSDictionary *body = @{@"snippet": @{@"topLevelComment":@{@"snippet":@{@"textOriginal":self.commentToPost.text}},@"videoId":self.videoIdPostingOn}}; NSError *error; NSData *jsonData = [NSJSONSerializ...
        阅读全文
                
摘要:Edit Scheme-> Run -> Arguments, 在Environment Variables里边添加 OS_ACTIVITY_MODE = disable
        阅读全文
                
摘要:http://www.it165.net/pro/html/201508/50571.html
        阅读全文
                
摘要:UIImage *img = [UIImage imageNamed:@"CGUnwrapRed_2"]; img = [img stretchableImageWithLeftCapWidth:floorf(img.size.width/2.0) topCapHeight:img.size.hei
        阅读全文
                
摘要:创建NSTextAttachment的对象,用来装在图片 将NSTextAttachment对象的image属性设置为想要使用的图片 设置NSTextAttachment对象bounds大小,也就是要显示的图片的大小 用[NSAttributedString attributedStringWith
        阅读全文
                
摘要:+ (UIImage *) imageWithView:(UIView *)view { UIGraphicsBeginImageContextWithOptions(view.bounds.size, view.opaque, [[UIScreen mainScreen] scale]); [view.layer renderInContext:UIGraphicsGetCur...
        阅读全文
                
摘要:UIKeyboardTypeDefault: UIKeyboardTypeASCIICapable: UIKeyboardTypeNumbersAndPunctuation: UIKeyboardTypeURL: UIKeyboardTypeNumberPad: UIKeyboardTypePhon
        阅读全文
                
摘要:获取WIFI在公网中的地址 http://smghzx.host3v.net/index.asp(目前不知道现在要这个有什么用,先存着吧。。。)
        阅读全文
                
摘要:NSFontaAttributeName 字体 NSParagraphStyleAttributeName 段落格式 NSForegroundColorAttributeName 字体颜色 NSBackgroundColorAttributeName 背景眼色 NSStrikethroughSsty
        阅读全文
                
摘要:#pragma mark - 获取url特定的参数 -(NSString *) jiexi:(NSString *)CS webaddress:(NSString *)webaddress { NSError *error; NSString *regTags=[[NSString alloc] initWithFormat:@"(^|&|\\?)+%@=+([^&]*)(&|$...
        阅读全文
                
                    
                
浙公网安备 33010602011771号