Skip to content

Instantly share code, notes, and snippets.

.shadow {
position: relative;
top: 20px;
left: 300px;
width: 200px;
height: 10px;
background-color: green;
}
.shadow:before {
position: absolute;
.shadow {
position: relative;
top: 10px;
left: 300px;
width: 200px;
height: 20px;
background-color: green;
}
.shadow:before {
position: absolute;
.shadow {
position: relative;
top: 20px;
height: 20px;
}
.shadow:before {
position: absolute;
content: '';
left: 0;
right: 0;
- (CGSize)sizeThatFits:(CGSize)size
{
NSMutableArray *bottoms = [NSMutableArray array];
for (UIView *view in self.subviews) {
NSNumber *bottom = [NSNumber numberWithFloat:view.center.y + CGRectGetMidY(view.bounds)];
[bottoms addObject:bottom];
- (CGSize)sizeThatFits:(CGSize)size
{
NSMutableArray *bottoms = [NSMutableArray array];
for (UIView *view in self.subviews) {
NSNumber *bottom = [NSNumber numberWithFloat:view.center.y + CGRectGetMidY(view.bounds)];
[bottoms addObject:bottom];
- (CGSize)sizeThatFits:(CGSize)size
{
NSMutableArray *bottoms = [NSMutableArray array];
for (UIView *view in self.subviews) {
NSNumber *bottom = [NSNumber numberWithFloat:view.center.y + CGRectGetMidY(view.bounds)];
[bottoms addObject:bottom];
@zakdances
zakdances / as
Last active December 17, 2015 04:29
Size
- (CGSize)sizeThatFits:(CGSize)size
{
NSMutableArray *bottoms = [NSMutableArray array];
for (UIView *view in self.subviews) {
NSNumber *bottom = [NSNumber numberWithFloat:view.center.y + CGRectGetMidY(view.bounds)];
[bottoms addObject:bottom];
- (CGSize)sizeThatFits:(CGSize)size
{
NSMutableArray *bottoms = [NSMutableArray array];
for (UIView *view in self.subviews) {
NSNumber *bottom = [NSNumber numberWithFloat:view.center.y + CGRectGetMidY(view.bounds)];
[bottoms addObject:bottom];
- (CGSize)sizeThatFits:(CGSize)size
{
NSMutableArray *bottoms = [NSMutableArray array];
for (UIView *view in self.subviews) {
NSNumber *bottom = [NSNumber numberWithFloat:view.center.y + CGRectGetMidY(view.bounds)];
[bottoms addObject:bottom];
- (CGSize)sizeThatFits:(CGSize)size
{
NSMutableArray *bottoms = [NSMutableArray array];
for (UIView *view in self.subviews) {
NSNumber *bottom = [NSNumber numberWithFloat:view.center.y + CGRectGetMidY(view.bounds)];
[bottoms addObject:bottom];