![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ios
文章平均质量分 71
育秦
你想要的 时间都会给你
展开
-
改变progressBar滑块颜色和进度条颜色
//change the progressBar slider image UIImage *thumbImage = [UIImageimageNamed:@"pronounce_Regulation_iPhone@2x.png"]; [_progressBar setThumbImage:thumbImage forState:UIControlState原创 2016-01-05 12:01:03 · 3250 阅读 · 0 评论 -
IOS 设置多个button,点击切换颜色
- (void)viewDidLoad { [superviewDidLoad]; //UIButton and changeColor _array = [[NSMutableArrayalloc]init]; [_arrayaddObject:@[@0,@182.0,@147.0]];原创 2015-12-21 23:56:06 · 2987 阅读 · 0 评论 -
iOS ViewController之间传值方法五(使用block)
5.使用block在ViewController之间传值在B页面.h文件@interface TwoViewController : UIViewController//定义一个block,参数为字符串typedef void (^ablock)(NSString *str);@property (nonatomic,copy)ablock bloc原创 2015-11-24 23:20:24 · 1412 阅读 · 0 评论 -
iOS ViewController之间传值方法四(利用Delegate)
3.利用Delegate在两个或多个ViewController之间传值在A界面 .h文件@protocol secondViewDelegate-(void)passViewController:(NSString*)str;//1a.定义协议与方法@end@interface ViewController : UIViewC原创 2015-11-22 20:16:03 · 1833 阅读 · 0 评论 -
iOS ViewController之间传值方法三(利用NSNotification)
3.利用NSNotification在两个或多个ViewController之间传值在A页面 //注册通知 [[NSNotificationCenterdefaultCenter]addObserver:selfselector:@selector(click:)name:@"mynotification"object:nil];原创 2015-11-20 23:48:38 · 480 阅读 · 0 评论 -
iOS ViewController之间传值方法二(利用NSUserDefaults)
2.利用NSUserDefaults在两个ViewController之间传值iOS中利用NSUserDefaults在两个或多个界面之间传值。其中NSUserDefaults支持的数据类型有:NSNumber(NSInteger,Float,Double),NSString,NSDate,NSArray,NSDictionary,BooL.以NSArray为例子,在A界面原创 2015-11-19 23:33:02 · 717 阅读 · 0 评论 -
iOS ViewController之间传值方法一(利用临时变量)
1.利用临时变量在两个ViewController之间传值IOS中,在两个ViewController之间传值有多种方式,这里学习其中一种,利用临时变量在两个ViewController之间传值,这可能不是最好的传值方式,但是也是一种选择。首先看看工程结构: 其中ViewController是第一个界面,SecondViewController是第二个界面,Us转载 2015-11-18 23:42:31 · 1080 阅读 · 0 评论 -
ios 在appdelegate里添加UINavigationController
之前因为写 [self.navigationController pushViewController:first animated:NO];报错,就自行在appdelegate里面添加了UINavigationController,以下是添加UINavigationController的方法,由更好的方法下次添加。appDelegate.h@property (strong,原创 2015-11-29 23:26:34 · 1700 阅读 · 0 评论 -
iOS NSDate比较两个时间的大小
比较两个时间的大小 NSString *content = [textField text]; NSDateFormatter *formatter = [[NSDateFormatteralloc] init]; NSTimeZone *timeZone = [NSTimeZonelocalTimeZone]; [forma原创 2015-11-29 23:51:17 · 2651 阅读 · 0 评论 -
IOS TableViewCell分割线设置和隐藏多余cell
1.设置分割线风格(对于自定义cell,如果cell左边顶部有空隙需要以下代码调整)在- (void)viewDidLoad里面写 myTableView.separatorStyle =UITableViewCellSeparatorStyleSingleLine;-(void)viewDidLayoutSubviews{ // 重写UI原创 2015-12-21 23:33:55 · 11133 阅读 · 0 评论 -
IOS 在iphone中PopoverViewController的使用
@property(nonatomic,retain)PopoverViewController *myPopover;-(void)popover{ _myPopover = [[PopoverViewControlleralloc]initWithNibName:@"PopoverViewController"bundle:nil];原创 2015-12-21 23:45:43 · 1952 阅读 · 0 评论 -
三类苹果开发者账号的区别
最近有人问个人、单位、企业这三类苹果开发者账号之间的区别是什么?之前我给我们领导解释过,有时候记性不好,所以用博客记录一下。1、个人(Individual)a.费用:99美元/年b.App Store上架:是c.最大UUID支持数:100d.协作人数:1人(开发者自己)说明:“个人”开发者可以申请升级“公司”,可以通过拨打苹果公司客服电话(400 6701 855)来咨询和...转载 2018-09-12 10:02:43 · 1212 阅读 · 1 评论