资源简介
ios实现简单计算机的代码,能够实现计算器的功能,非常好用,本人亲测,完全免费,能够直接运行,是非常好的学习例子
代码片段和文件信息
//
// MASCompositeConstraint.m
// Masonry
//
// Created by Jonas Budelmann on 21/07/13.
// Copyright (c) 2013 cloudling. All rights reserved.
//
#import “MASCompositeConstraint.h“
#import “MASConstraint+Private.h“
@interface MASCompositeConstraint ()
@property (nonatomic strong) id mas_key;
@property (nonatomic strong) NSMutableArray *childConstraints;
@end
@implementation MASCompositeConstraint
- (id)initWithChildren:(NSArray *)children {
self = [super init];
if (!self) return nil;
_childConstraints = [children mutableCopy];
for (MASConstraint *constraint in _childConstraints) {
constraint.delegate = self;
}
return self;
}
#pragma mark - MASConstraintDelegate
- (void)constraint:(MASConstraint *)constraint shouldBeReplacedWithConstraint:(MASConstraint *)replacementConstraint {
NSUInteger index = [self.childConstraints indexOfobject:constraint];
NSAssert(index != NSNotFound @“Could not find constraint %@“ constraint);
[self.childConstraints replaceobjectAtIndex:index withobject:replacementConstraint];
}
- (MASConstraint *)constraint:(MASConstraint __unused *)constraint addConstraintWithLayoutAttribute:(NSLayoutAttribute)layoutAttribute {
id strongDelegate = self.delegate;
MASConstraint *newConstraint = [strongDelegate constraint:self addConstraintWithLayoutAttribute:layoutAttribute];
newConstraint.delegate = self;
[self.childConstraints addobject:newConstraint];
return newConstraint;
}
#pragma mark - NSLayoutConstraint multiplier proxies
- (MASConstraint * (^)(CGFloat))multipliedBy {
return ^id(CGFloat multiplier) {
for (MASConstraint *constraint in self.childConstraints) {
constraint.multipliedBy(multiplier);
}
return self;
};
}
- (MASConstraint * (^)(CGFloat))dividedBy {
return ^id(CGFloat divider) {
for (MASConstraint *constraint in self.childConstraints) {
constraint.dividedBy(divider);
}
return self;
};
}
#pragma mark - MASLayoutPriority proxy
- (MASConstraint * (^)(MASLayoutPriority))priority {
return ^id(MASLayoutPriority priority) {
for (MASConstraint *constraint in self.childConstraints) {
constraint.priority(priority);
}
return self;
};
}
#pragma mark - NSLayoutRelation proxy
- (MASConstraint * (^)(id NSLayoutRelation))equalToWithRelation {
return ^id(id attr NSLayoutRelation relation) {
for (MASConstraint *constraint in self.childConstraints.copy) {
constraint.equalToWithRelation(attr relation);
}
return self;
};
}
#pragma mark - attribute chaining
- (MASConstraint *)addConstraintWithLayoutAttribute:(NSLayoutAttribute)layoutAttribute {
[self constraint:self addConstraintWithLayoutAttribute:layoutAttribute];
return self;
}
#pragma mark - Animator proxy
#if TARGET_OS_MAC && !(TARGET_OS_IPHONE || TARGET_OS_TV)
- (MA
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 0 2016-01-18 15:04 ios璁$畻鏈?
目录 0 2016-01-18 14:37 ios璁$畻鏈?test\
文件 6148 2016-01-18 15:00 ios璁$畻鏈?test\.DS_Store
目录 0 2016-01-18 15:04 __MACOSX\
文件 0 2016-01-18 15:04 __MACOSX\ios璁$畻鏈?
目录 0 2016-01-18 15:04 __MACOSX\ios璁$畻鏈?test\
文件 120 2016-01-18 15:00 __MACOSX\ios璁$畻鏈?test\._.DS_Store
目录 0 2016-01-18 15:03 ios璁$畻鏈?test\.git\
文件 15 2016-01-18 14:33 ios璁$畻鏈?test\.git\COMMIT_EDITMSG
文件 137 2016-01-18 14:33 ios璁$畻鏈?test\.git\config
文件 73 2016-01-18 14:33 ios璁$畻鏈?test\.git\desc
文件 23 2016-01-18 14:33 ios璁$畻鏈?test\.git\HEAD
目录 0 2016-01-18 14:33 ios璁$畻鏈?test\.git\hooks\
文件 177 2016-01-18 14:33 ios璁$畻鏈?test\.git\hooks\README.sample
文件 2166 2016-01-18 14:33 ios璁$畻鏈?test\.git\index
目录 0 2016-01-18 14:33 ios璁$畻鏈?test\.git\info\
文件 40 2016-01-18 14:33 ios璁$畻鏈?test\.git\info\exclude
目录 0 2016-01-18 15:04 __MACOSX\ios璁$畻鏈?test\.git\
目录 0 2016-01-18 15:04 __MACOSX\ios璁$畻鏈?test\.git\info\
文件 171 2016-01-18 14:33 __MACOSX\ios璁$畻鏈?test\.git\info\._exclude
目录 0 2016-01-18 14:33 ios璁$畻鏈?test\.git\logs\
文件 173 2016-01-18 14:33 ios璁$畻鏈?test\.git\logs\HEAD
目录 0 2016-01-18 14:33 ios璁$畻鏈?test\.git\logs\refs\
目录 0 2016-01-18 14:33 ios璁$畻鏈?test\.git\logs\refs\heads\
文件 173 2016-01-18 14:33 ios璁$畻鏈?test\.git\logs\refs\heads\master
目录 0 2016-01-18 14:33 ios璁$畻鏈?test\.git\ob
目录 0 2016-01-18 14:33 ios璁$畻鏈?test\.git\ob
文件 132 2016-01-18 14:33 ios璁$畻鏈?test\.git\ob
目录 0 2016-01-18 14:33 ios璁$畻鏈?test\.git\ob
文件 137 2016-01-18 14:33 ios璁$畻鏈?test\.git\ob
文件 137 2016-01-18 14:33 ios璁$畻鏈?test\.git\ob
............此处省略209个文件信息
相关资源
- 联想H61主板BIOS升级F9KT58AUS支持22NM.i
- Lenovo Z460 SLIC2.1 LENOVO-29CN38WW(V2.15)
- 联想G400G500G490BIOS
- ASUS BIOS 加NVME协议文件: Nvme.ffs NV
- Phoenix BIOS Editor.rar
- HP笔记本BIOS丢失解决方法,DMI TOOLK
- Y450 BIOS白名单
- BIOS修改工具DMI236
- 联想F40/F41bios3.13版
- 联想启天M4350 BIOS升级文件
- 详细图解联想Y430\\Y530笔记本SLIC表2.
- 联想g460 bios 29CN38WW(V2.15)
- G460 2.15 x64 bios
- 三星通用bios更新程序
- rx560bios合集-注意显存颗粒及供电
- 联想K29最新1.70BIOS修改版,去白名单验
- 联想刷bios‘工具
- 解决Y470/Y570更新2.12BIOS后无法识别8G内
- 黑苹果—盈通 R6770-1024GD5 TA 经典版
- 华硕P8H61/USB3 R2.0主板BIOS驱动 免费版
- 映泰Biostar TA870网
- asus华硕 m5a97 le r2.0主板bios 官方版
- 华硕ASUS K42JZ BIOS主板驱动程序 v9.1.1
- ASUS华硕B85主板BIOS驱动程序 官方版
- 联想A320一体机BIOS
- 启天M7150 BIOS
- 启天M7150 L-IG41M主板 BIOS
- gi945解除限制pjbios
- Xcode 12.3(16F156)安装包.zip
- 金蝶ERP二次开发技术手册
评论
共有 条评论