![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ios
NBA粉丝啦
这个作者很懒,什么都没留下…
展开
-
UIButton图片Lable共存方法
这种方法创建的简单明了对位置的改动容易,点击后的高亮状态可以参考,获取uiimage纯色图片,然后调用- (void)setImage:(UIImage *)image forState:(UIControlState)state;就可以改动点击后颜色(背景颜色),效果还是不错的CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();原创 2015-04-14 00:21:21 · 428 阅读 · 0 评论 -
AFNetworking 上传多张图片 xml 解析方式
CocoaPods 安装教程很多 给个地址http://code4app.com/article/cocoapods-install-usage //CocoaPods 加载AFNetworking 也可以下载下来在安装这种方法更新比较方便项目看起来没那么复杂 platform :ios, ‘7.0’ pod “AFNetworking”, “~> 2.0”AFNetWoking githu原创 2015-08-16 22:39:05 · 637 阅读 · 0 评论 -
UITableView 隐藏没有数据线条
[self hideExcessLine:self.tableView];-(void)hideExcessLine:(UITableView *)tableView{ UIView *view=[[UIView alloc] init]; view.backgroundColor=[UIColor clearColor]; [tableView setTableFooterV原创 2015-08-11 20:18:16 · 549 阅读 · 0 评论 -
UISearchbar 搜索按钮更换 代码实现UISearchbar去除第一响应
[self.view addSubview:[self creatTableView]];-(UISearchBar *)searchBar{ mySearchBar = [[UISearchBar alloc] initWithFrame:CGRectMake(0, 0, BOUND_WIDTH, 44)]; mySearchBar.delegate = self; [s翻译 2015-08-25 01:28:01 · 2377 阅读 · 0 评论 -
UITextFiled上方宽度解决
//上方空白解决 self.automaticallyAdjustsScrollViewInsets = NO; textView = [[UIPlaceholderTextView alloc] init]; [textView setFrame:CGRectMake(20, 74, self.view.frame.size.width-40, 150)];原创 2015-07-29 11:50:50 · 361 阅读 · 0 评论 -
ios 错误问题
Ld /Users/jane/Library/Developer/Xcode/DerivedData/影楼-fdacfrdppsgjgobnjjbrhmabqwfh/Build/Products/Debug-iphonesimulator/影楼.app/影楼 normal i386 cd /Users/jane/Desktop/3/影楼 export IPHONEOS_DEPLO原创 2015-05-02 15:18:17 · 530 阅读 · 0 评论 -
ios nil Nil NULL NSNull区别
nil 是oc对象中指针的空值id object = nil; if(object) { NSLog(@"object is not nil"); } if(object == nil) { NSLog(@"object is nil"); }这个就可以说明原创 2015-05-08 17:12:44 · 409 阅读 · 0 评论 -
自定义Lable设置Lable与文字长度,两个字符串拼接
.h#import <UIKit/UIKit.h>@interface DetailLable : UILabel-(void)setText:(NSString *)titleText title:(NSString *)text setFram:(CGRect)frame;@end.m#import "DetailLable.h"#define cellpading 8@implementa原创 2015-04-21 20:32:48 · 1789 阅读 · 0 评论 -
UILable 自适应长度
//Calculate the size necessary for the UILableNSString *theText = @"Texting";CGSize theStringSize = [theText sizeWithFont:font constrainedToSize:theLabel.frame.size lineBreakMode:theLabel.li原创 2015-04-21 19:04:30 · 361 阅读 · 0 评论 -
自定义cell代码创建
.h#import <Foundation/Foundation.h>@interface ImageCellStyle : NSObject@property (nonatomic,copy) NSString *style;@property (nonatomic,copy) NSString *name;@property (nonatomic,copy) NSString *time;原创 2015-04-21 20:36:52 · 344 阅读 · 0 评论 -
自定义Cell几种方法
.h文件#import <UIKit/UIKit.h>@class ImageCellStyle;@interface ActionCell : UITableViewCell@property (nonatomic, strong) ImageCellStyle *imageStyle;- (void)settingData:(ImageCellStyle *)imagecellStyle;@en原创 2015-04-21 17:20:01 · 398 阅读 · 0 评论 -
UILable 增加下划线 换行
记下来以后好复习UILabel *attention_text = [[UILabel alloc] initWithFrame:CGRectMake(80, segementView.contentSize.height-220+70, self.view.frame.size.width-100, 80)]; attention_text.numberOfLines=2; NSM原创 2015-04-13 23:57:01 · 445 阅读 · 0 评论 -
iOS 获取纯色图片方法
+ (UIImage *)imageWithColor:(UIColor *)color size:(CGSize)size { CGRect rect = CGRectMake(0, 0, size.width, size.height); UIGraphicsBeginImageContext(rect.size); CGContextRef context = UIGr原创 2015-04-14 00:00:21 · 631 阅读 · 0 评论 -
Alamofire,SwiftJSON,MJExtension,解析Json获取对象,带参数上传图片
第三方框架地址 https://github.com/CoderMJLee/MJExtension MjExtension使用方法 https://github.com/Alamofire/Alamofire https://github.com/SwiftyJSON/SwiftyJSON使用方法 cocoapods 安装 http://www.bubuko.com/infodetail-原创 2015-11-29 21:13:56 · 2331 阅读 · 0 评论