- 博客(7)
- 资源 (5)
- 收藏
- 关注
转载 自定义alertView
自定义alertView,继承自UIView,可以在消息区域添加子视图:addCustomerSubview标题可以有图片+文字构成, 只支持两个按钮操作// - 在需要alert的控制器调用 alertView show 方法[objc] view plaincopyCustomAlertView *alertView = [[CustomAlertV
2015-09-18 08:40:26 280
原创 获取图片名
__block NSString *picName = @" " ; //获取图片名 ALAssetsLibraryAssetForURLResultBlock resultblock = ^(ALAsset *myasset) { ALAssetRepresentation *representation = [myasset defaultRep
2015-09-17 14:19:09 285
转载 NSString拼接字符串
NSString* string; // 结果字符串02NSString* string1, string2; //已存在的字符串,需要将string1和string2连接起来03 04//方法1.05strin
2015-09-16 14:13:15 539
转载 ios 读取图片
一.读取图片1.从资源(resource)读取[cpp] viewplaincopyprint?UIImage* image=[UIImage imageNamed:@"1.jpg"]; 2.从网络读取[cpp] viewplaincopyprint?NSURL *url=[NSURL U
2015-09-15 15:25:47 380
原创 UISearchBar 背景 边框设置
UISearchBar *searchBar = [[UISearchBar alloc] initWithFrame:CGRectMake(10, 3, SWidth-20, 30)]; searchBar.placeholder = @"请输入关键字";// searchBar.barTintColor = [UIColor greenColor]; searchBar.backgroundI
2015-09-09 15:21:49 1066
原创 UIAlertView 使用及按钮响应事件
-(void)addLable{ UIAlertView *alert = [[UIAlertView alloc] initWithTitle:nil message:@"" delegate:self cancelButtonTitle:@"取消" otherButtonTitles:@"确认",nil]; alert.alertViewStyle = UIAlertV
2015-09-09 12:53:07 577
原创 navigationbar右侧加两个自定义按钮
UIView *rightBarView = [[UIViewalloc]initWithFrame:CGRectMake(0,0,60, 31)]; UIButton *phonebutton = [UIButtonbuttonWithType:UIButtonTypeCustom]; phonebutton.frame=CGRectMake(0,5,25
2015-09-01 18:45:00 476
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人