- Upgrade Images

- Fix Vari
This commit is contained in:
Giuseppe Nucifora 2015-08-07 18:41:49 +02:00
parent 091bb39d54
commit 6c0f2bbae5
98 changed files with 290 additions and 89 deletions

View File

@ -2,17 +2,17 @@
"images" : [ "images" : [
{ {
"idiom" : "universal", "idiom" : "universal",
"filename" : "price_on.png", "filename" : "allergen.png",
"scale" : "1x" "scale" : "1x"
}, },
{ {
"idiom" : "universal", "idiom" : "universal",
"filename" : "price_on@2x.png", "filename" : "allergen@2x.png",
"scale" : "2x" "scale" : "2x"
}, },
{ {
"idiom" : "universal", "idiom" : "universal",
"filename" : "price_on@3x.png", "filename" : "allergen@3x.png",
"scale" : "3x" "scale" : "3x"
} }
], ],

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

View File

@ -0,0 +1,23 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "allergen_highlighted.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "allergen_highlighted@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "allergen_highlighted@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 835 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

View File

@ -2,17 +2,17 @@
"images" : [ "images" : [
{ {
"idiom" : "universal", "idiom" : "universal",
"filename" : "calendar_on.png", "filename" : "allergen_selected.png",
"scale" : "1x" "scale" : "1x"
}, },
{ {
"idiom" : "universal", "idiom" : "universal",
"filename" : "calendar_on@2x.png", "filename" : "allergen_selected@2x.png",
"scale" : "2x" "scale" : "2x"
}, },
{ {
"idiom" : "universal", "idiom" : "universal",
"filename" : "calendar_on@3x.png", "filename" : "allergen_selected@3x.png",
"scale" : "3x" "scale" : "3x"
} }
], ],

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

View File

@ -2,17 +2,17 @@
"images" : [ "images" : [
{ {
"idiom" : "universal", "idiom" : "universal",
"filename" : "type_off.png", "filename" : "calendar.png",
"scale" : "1x" "scale" : "1x"
}, },
{ {
"idiom" : "universal", "idiom" : "universal",
"filename" : "type_off@2x.png", "filename" : "calendar@2x.png",
"scale" : "2x" "scale" : "2x"
}, },
{ {
"idiom" : "universal", "idiom" : "universal",
"filename" : "type_off@3x.png", "filename" : "calendar@3x.png",
"scale" : "3x" "scale" : "3x"
} }
], ],

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@ -0,0 +1,23 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "calendar_highlighted.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "calendar_highlighted@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "calendar_highlighted@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 757 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

View File

@ -0,0 +1,23 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "calendar_selected.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "calendar_selected@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "calendar_selected@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

View File

@ -2,17 +2,17 @@
"images" : [ "images" : [
{ {
"idiom" : "universal", "idiom" : "universal",
"filename" : "price_off.png", "filename" : "location.png",
"scale" : "1x" "scale" : "1x"
}, },
{ {
"idiom" : "universal", "idiom" : "universal",
"filename" : "price_off@2x.png", "filename" : "location@2x.png",
"scale" : "2x" "scale" : "2x"
}, },
{ {
"idiom" : "universal", "idiom" : "universal",
"filename" : "price_off@3x.png", "filename" : "location@3x.png",
"scale" : "3x" "scale" : "3x"
} }
], ],

Binary file not shown.

After

Width:  |  Height:  |  Size: 880 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

@ -0,0 +1,23 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "location_highlighted.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "location_highlighted@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "location_highlighted@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 502 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 998 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -1,23 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "location_off.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "location_off@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "location_off@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 686 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -1,23 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "location_on.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "location_on@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "location_on@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 688 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -0,0 +1,23 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "location_selected.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "location_selected@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "location_selected@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 817 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@ -2,17 +2,17 @@
"images" : [ "images" : [
{ {
"idiom" : "universal", "idiom" : "universal",
"filename" : "type_on.png", "filename" : "price.png",
"scale" : "1x" "scale" : "1x"
}, },
{ {
"idiom" : "universal", "idiom" : "universal",
"filename" : "type_on@2x.png", "filename" : "price@2x.png",
"scale" : "2x" "scale" : "2x"
}, },
{ {
"idiom" : "universal", "idiom" : "universal",
"filename" : "type_on@3x.png", "filename" : "price@3x.png",
"scale" : "3x" "scale" : "3x"
} }
], ],

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

View File

@ -0,0 +1,23 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "price_highlighted.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "price_highlighted@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "price_highlighted@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 785 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

View File

@ -2,17 +2,17 @@
"images" : [ "images" : [
{ {
"idiom" : "universal", "idiom" : "universal",
"filename" : "allergen_on.png", "filename" : "price_selected.png",
"scale" : "1x" "scale" : "1x"
}, },
{ {
"idiom" : "universal", "idiom" : "universal",
"filename" : "allergen_on@2x.png", "filename" : "price_selected@2x.png",
"scale" : "2x" "scale" : "2x"
}, },
{ {
"idiom" : "universal", "idiom" : "universal",
"filename" : "allergen_on@3x.png", "filename" : "price_selected@3x.png",
"scale" : "3x" "scale" : "3x"
} }
], ],

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

View File

@ -0,0 +1,23 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "type.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "type@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "type@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 850 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -2,17 +2,17 @@
"images" : [ "images" : [
{ {
"idiom" : "universal", "idiom" : "universal",
"filename" : "calendar_off.png", "filename" : "type_highlighted.png",
"scale" : "1x" "scale" : "1x"
}, },
{ {
"idiom" : "universal", "idiom" : "universal",
"filename" : "calendar_off@2x.png", "filename" : "type_highlighted@2x.png",
"scale" : "2x" "scale" : "2x"
}, },
{ {
"idiom" : "universal", "idiom" : "universal",
"filename" : "calendar_off@3x.png", "filename" : "type_highlighted@3x.png",
"scale" : "3x" "scale" : "3x"
} }
], ],

Binary file not shown.

After

Width:  |  Height:  |  Size: 550 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 903 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 735 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 859 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 747 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 886 B

View File

@ -2,17 +2,17 @@
"images" : [ "images" : [
{ {
"idiom" : "universal", "idiom" : "universal",
"filename" : "allergen_off.png", "filename" : "type_selected.png",
"scale" : "1x" "scale" : "1x"
}, },
{ {
"idiom" : "universal", "idiom" : "universal",
"filename" : "allergen_off@2x.png", "filename" : "type_selected@2x.png",
"scale" : "2x" "scale" : "2x"
}, },
{ {
"idiom" : "universal", "idiom" : "universal",
"filename" : "allergen_off@3x.png", "filename" : "type_selected@3x.png",
"scale" : "3x" "scale" : "3x"
} }
], ],

Binary file not shown.

After

Width:  |  Height:  |  Size: 808 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@ -44,6 +44,10 @@
610E3F00DD9A11CF2B3AB4ACDF9F2C88 /* ALView+PureLayout.m in Sources */ = {isa = PBXBuildFile; fileRef = 1F1993462D9F57783E626EE12A22DA6E /* ALView+PureLayout.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; 610E3F00DD9A11CF2B3AB4ACDF9F2C88 /* ALView+PureLayout.m in Sources */ = {isa = PBXBuildFile; fileRef = 1F1993462D9F57783E626EE12A22DA6E /* ALView+PureLayout.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; };
62AF98DE098B6AE453132CE1AA19765E /* POPDefines.h in Headers */ = {isa = PBXBuildFile; fileRef = EB6215B243DFD151285F9B12CE2368A2 /* POPDefines.h */; settings = {ATTRIBUTES = (Public, ); }; }; 62AF98DE098B6AE453132CE1AA19765E /* POPDefines.h in Headers */ = {isa = PBXBuildFile; fileRef = EB6215B243DFD151285F9B12CE2368A2 /* POPDefines.h */; settings = {ATTRIBUTES = (Public, ); }; };
6354BF1C514445C33F9B65DD18205535 /* NSArray+PureLayout.h in Headers */ = {isa = PBXBuildFile; fileRef = 913E7306AD4E255661D418473382CF54 /* NSArray+PureLayout.h */; settings = {ATTRIBUTES = (Public, ); }; }; 6354BF1C514445C33F9B65DD18205535 /* NSArray+PureLayout.h in Headers */ = {isa = PBXBuildFile; fileRef = 913E7306AD4E255661D418473382CF54 /* NSArray+PureLayout.h */; settings = {ATTRIBUTES = (Public, ); }; };
688F8F6C1B7515A7008E28C8 /* UIButton+BackgroundColor.h in Headers */ = {isa = PBXBuildFile; fileRef = 688F8F681B7515A7008E28C8 /* UIButton+BackgroundColor.h */; };
688F8F6D1B7515A7008E28C8 /* UIButton+BackgroundColor.m in Sources */ = {isa = PBXBuildFile; fileRef = 688F8F691B7515A7008E28C8 /* UIButton+BackgroundColor.m */; };
688F8F6E1B7515A7008E28C8 /* UIImage+Color.h in Headers */ = {isa = PBXBuildFile; fileRef = 688F8F6A1B7515A7008E28C8 /* UIImage+Color.h */; };
688F8F6F1B7515A7008E28C8 /* UIImage+Color.m in Sources */ = {isa = PBXBuildFile; fileRef = 688F8F6B1B7515A7008E28C8 /* UIImage+Color.m */; };
6BFFC7205011A11472F6457F6D6B489C /* POPAnimation.mm in Sources */ = {isa = PBXBuildFile; fileRef = 24FD90CF8C651053BFFF6A3EAF117125 /* POPAnimation.mm */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; 6BFFC7205011A11472F6457F6D6B489C /* POPAnimation.mm in Sources */ = {isa = PBXBuildFile; fileRef = 24FD90CF8C651053BFFF6A3EAF117125 /* POPAnimation.mm */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; };
6C4B81E2699A8266AAB7C85824999897 /* POPSpringAnimation.h in Headers */ = {isa = PBXBuildFile; fileRef = A103939D06A87FED0BE43F0CF5F5056A /* POPSpringAnimation.h */; settings = {ATTRIBUTES = (Public, ); }; }; 6C4B81E2699A8266AAB7C85824999897 /* POPSpringAnimation.h in Headers */ = {isa = PBXBuildFile; fileRef = A103939D06A87FED0BE43F0CF5F5056A /* POPSpringAnimation.h */; settings = {ATTRIBUTES = (Public, ); }; };
6DBFBBAB5805C21D1665893E655EA4FD /* POPDecayAnimationInternal.h in Headers */ = {isa = PBXBuildFile; fileRef = 0092F18589478DBE2AE13D966D9CCD17 /* POPDecayAnimationInternal.h */; settings = {ATTRIBUTES = (Project, ); }; }; 6DBFBBAB5805C21D1665893E655EA4FD /* POPDecayAnimationInternal.h in Headers */ = {isa = PBXBuildFile; fileRef = 0092F18589478DBE2AE13D966D9CCD17 /* POPDecayAnimationInternal.h */; settings = {ATTRIBUTES = (Project, ); }; };
@ -216,6 +220,10 @@
63FCE3E65371359592CB606E1790BC86 /* POPLayerExtras.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = POPLayerExtras.h; path = pop/POPLayerExtras.h; sourceTree = "<group>"; }; 63FCE3E65371359592CB606E1790BC86 /* POPLayerExtras.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = POPLayerExtras.h; path = pop/POPLayerExtras.h; sourceTree = "<group>"; };
6474C99DA6F95FB4A031EA234BA3CF12 /* POPPropertyAnimation.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = POPPropertyAnimation.h; path = pop/POPPropertyAnimation.h; sourceTree = "<group>"; }; 6474C99DA6F95FB4A031EA234BA3CF12 /* POPPropertyAnimation.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = POPPropertyAnimation.h; path = pop/POPPropertyAnimation.h; sourceTree = "<group>"; };
6805F6C4A24C2AAAB6A33C0A97652E03 /* POPAnimation.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = POPAnimation.h; path = pop/POPAnimation.h; sourceTree = "<group>"; }; 6805F6C4A24C2AAAB6A33C0A97652E03 /* POPAnimation.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = POPAnimation.h; path = pop/POPAnimation.h; sourceTree = "<group>"; };
688F8F681B7515A7008E28C8 /* UIButton+BackgroundColor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIButton+BackgroundColor.h"; sourceTree = "<group>"; };
688F8F691B7515A7008E28C8 /* UIButton+BackgroundColor.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIButton+BackgroundColor.m"; sourceTree = "<group>"; };
688F8F6A1B7515A7008E28C8 /* UIImage+Color.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIImage+Color.h"; sourceTree = "<group>"; };
688F8F6B1B7515A7008E28C8 /* UIImage+Color.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIImage+Color.m"; sourceTree = "<group>"; };
6A74066159202FC8BA84394854A1116D /* MMCPSScrollView.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = MMCPSScrollView.h; sourceTree = "<group>"; }; 6A74066159202FC8BA84394854A1116D /* MMCPSScrollView.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = MMCPSScrollView.h; sourceTree = "<group>"; };
6E05779740DB7A4882324BB0CC77FE83 /* PureLayout.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = PureLayout.h; path = PureLayout/PureLayout/PureLayout.h; sourceTree = "<group>"; }; 6E05779740DB7A4882324BB0CC77FE83 /* PureLayout.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = PureLayout.h; path = PureLayout/PureLayout/PureLayout.h; sourceTree = "<group>"; };
73CE6B07292175B9D39CBFFC0DB41A60 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; 73CE6B07292175B9D39CBFFC0DB41A60 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
@ -396,6 +404,7 @@
children = ( children = (
977370A91AC8B677022217B6F7096E4E /* MMCPSScrollView */, 977370A91AC8B677022217B6F7096E4E /* MMCPSScrollView */,
FFBEFBD8E8214E18E4714B2658CAC8CB /* NSString+HexColor */, FFBEFBD8E8214E18E4714B2658CAC8CB /* NSString+HexColor */,
688F8F671B7515A7008E28C8 /* UIButton+BackgroundColor */,
); );
path = Vendor; path = Vendor;
sourceTree = "<group>"; sourceTree = "<group>";
@ -486,6 +495,17 @@
path = "Target Support Files/Pods-TabBarPicker_Example"; path = "Target Support Files/Pods-TabBarPicker_Example";
sourceTree = "<group>"; sourceTree = "<group>";
}; };
688F8F671B7515A7008E28C8 /* UIButton+BackgroundColor */ = {
isa = PBXGroup;
children = (
688F8F681B7515A7008E28C8 /* UIButton+BackgroundColor.h */,
688F8F691B7515A7008E28C8 /* UIButton+BackgroundColor.m */,
688F8F6A1B7515A7008E28C8 /* UIImage+Color.h */,
688F8F6B1B7515A7008E28C8 /* UIImage+Color.m */,
);
path = "UIButton+BackgroundColor";
sourceTree = "<group>";
};
7DB346D0F39D3F0E887471402A8071AB = { 7DB346D0F39D3F0E887471402A8071AB = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
@ -719,7 +739,9 @@
A1F2D95F436714051CFE1601C09ACAE9 /* NSString+HexColor.h in Headers */, A1F2D95F436714051CFE1601C09ACAE9 /* NSString+HexColor.h in Headers */,
3FC1CA95A408FA5E1A57AC93B0C8A988 /* TabBarItem.h in Headers */, 3FC1CA95A408FA5E1A57AC93B0C8A988 /* TabBarItem.h in Headers */,
DF28F428A637429E12D16D55801D4916 /* TabBarPicker-umbrella.h in Headers */, DF28F428A637429E12D16D55801D4916 /* TabBarPicker-umbrella.h in Headers */,
688F8F6C1B7515A7008E28C8 /* UIButton+BackgroundColor.h in Headers */,
C83D6A4F894219C63C6ED47E108D3EB3 /* TabBarPicker.h in Headers */, C83D6A4F894219C63C6ED47E108D3EB3 /* TabBarPicker.h in Headers */,
688F8F6E1B7515A7008E28C8 /* UIImage+Color.h in Headers */,
7391D8870EF96C08872561E1821F1085 /* TabBarPickerSubItemsView.h in Headers */, 7391D8870EF96C08872561E1821F1085 /* TabBarPickerSubItemsView.h in Headers */,
860781420B1293C292A4A3D52E9F50F0 /* TabBarSubItem.h in Headers */, 860781420B1293C292A4A3D52E9F50F0 /* TabBarSubItem.h in Headers */,
); );
@ -1076,10 +1098,12 @@
buildActionMask = 2147483647; buildActionMask = 2147483647;
files = ( files = (
7DDBA8DBAAFFC333C9196889504A8897 /* MMCPSScrollView.m in Sources */, 7DDBA8DBAAFFC333C9196889504A8897 /* MMCPSScrollView.m in Sources */,
688F8F6D1B7515A7008E28C8 /* UIButton+BackgroundColor.m in Sources */,
D6B77498010DFE75E70431CBF7896FCC /* NSString+HexColor.m in Sources */, D6B77498010DFE75E70431CBF7896FCC /* NSString+HexColor.m in Sources */,
4878C076CDFE4C3EA1F69EA060123C59 /* TabBarItem.m in Sources */, 4878C076CDFE4C3EA1F69EA060123C59 /* TabBarItem.m in Sources */,
6F1FE5900883A92AFA28F808B14E8726 /* TabBarPicker-dummy.m in Sources */, 6F1FE5900883A92AFA28F808B14E8726 /* TabBarPicker-dummy.m in Sources */,
B020FF612A093F9D08267D37E81E8A10 /* TabBarPicker.m in Sources */, B020FF612A093F9D08267D37E81E8A10 /* TabBarPicker.m in Sources */,
688F8F6F1B7515A7008E28C8 /* UIImage+Color.m in Sources */,
787808E143D0036BA6D65469240A1653 /* TabBarPickerSubItemsView.m in Sources */, 787808E143D0036BA6D65469240A1653 /* TabBarPickerSubItemsView.m in Sources */,
2E7293FA79CA8E73693C7D7C838206AD /* TabBarSubItem.m in Sources */, 2E7293FA79CA8E73693C7D7C838206AD /* TabBarSubItem.m in Sources */,
); );

View File

@ -9,7 +9,7 @@
#import "TabBarItem.h" #import "TabBarItem.h"
#import <PureLayout/PureLayout.h> #import <PureLayout/PureLayout.h>
#import "NSString+HexColor.h" #import "NSString+HexColor.h"
#import <UIButton+BackgroundColor/UIButton+BackgroundColor.h> #import "UIButton+BackgroundColor.h"
@interface TabBarItem() @interface TabBarItem()
@ -83,19 +83,12 @@
- (void) setHighlightedColor:(UIColor *)highlightedColor { - (void) setHighlightedColor:(UIColor *)highlightedColor {
_highlightedColor = highlightedColor; _highlightedColor = highlightedColor;
[_itemButton setBackgroundColor:_highlightedColor forState:UIControlStateHighlighted];
} }
- (void) setHighlighted:(BOOL) highlighted { - (void) setHighlighted:(BOOL) highlighted {
[_itemButton setHighlighted:highlighted]; [_itemButton setHighlighted:highlighted];
if ([_itemButton isHighlighted]) {
[_itemButton setBackgroundColor:_highlightedColor];
}
else {
[_itemButton setBackgroundColor:[UIColor clearColor]];
}
NSLog(@"%@",[NSNumber numberWithBool:[_itemButton isSelected]]); NSLog(@"%@",[NSNumber numberWithBool:[_itemButton isSelected]]);
NSLog(@"%@",[NSNumber numberWithBool:[_itemButton isHighlighted]]); NSLog(@"%@",[NSNumber numberWithBool:[_itemButton isHighlighted]]);
NSLog(@"%@",[NSNumber numberWithBool:[_itemButton isEnabled]]); NSLog(@"%@",[NSNumber numberWithBool:[_itemButton isEnabled]]);
@ -103,14 +96,6 @@
} }
- (void) itemButtonTapped { - (void) itemButtonTapped {
if ([_itemButton isHighlighted]) {
[_itemButton setBackgroundColor:_highlightedColor];
}
else {
[_itemButton setBackgroundColor:[UIColor clearColor]];
}
if (_delegate && [_delegate respondsToSelector:@selector(tabBarItemSelected:)]) { if (_delegate && [_delegate respondsToSelector:@selector(tabBarItemSelected:)]) {
[_delegate tabBarItemSelected:self]; [_delegate tabBarItemSelected:self];
} }
@ -118,7 +103,7 @@
NSLog(@"%@",[NSNumber numberWithBool:[_itemButton isHighlighted]]); NSLog(@"%@",[NSNumber numberWithBool:[_itemButton isHighlighted]]);
NSLog(@"%@",[NSNumber numberWithBool:[_itemButton isEnabled]]); NSLog(@"%@",[NSNumber numberWithBool:[_itemButton isEnabled]]);
NSLog(@"%ld",_itemButton.state); NSLog(@"%ld",_itemButton.state);
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.002 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[_itemButton setHighlighted:YES]; [_itemButton setHighlighted:YES];
}); });
} }

View File

@ -0,0 +1,15 @@
//
// UIButton+BackgroundColor.h
// UIButton+BackgroundColor
//
// Created by Luu Gia Thuy on 7/28/15.
// Copyright (c) 2015 Luu Gia Thuy. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIButton (BackgroundColor)
- (void)setBackgroundColor:(UIColor *)backgroundColor forState:(UIControlState)state UI_APPEARANCE_SELECTOR;
@end

View File

@ -0,0 +1,20 @@
//
// UIButton+BackgroundColor.m
// UIButton+BackgroundColor
//
// Created by Luu Gia Thuy on 7/28/15.
// Copyright (c) 2015 Luu Gia Thuy. All rights reserved.
//
#import "UIImage+Color.h"
#import "UIButton+BackgroundColor.h"
@implementation UIButton (BackgroundColor)
- (void)setBackgroundColor:(UIColor *)backgroundColor forState:(UIControlState)state {
[self setBackgroundImage:[UIImage imageWithColor:backgroundColor] forState:state];
}
@end

View File

@ -0,0 +1,15 @@
//
// UIImage+Color.h
// UIButton+BackgroundColor
//
// Created by Luu Gia Thuy on 7/28/15.
//
//
#import <UIKit/UIKit.h>
@interface UIImage (Color)
+ (UIImage *)imageWithColor:(UIColor *)color;
@end

View File

@ -0,0 +1,27 @@
//
// UIImage+Color.m
// UIButton+BackgroundColor
//
// Created by Luu Gia Thuy on 7/28/15.
//
//
#import "UIImage+Color.h"
@implementation UIImage (Color)
+ (UIImage *)imageWithColor:(UIColor *)color {
CGRect rect = CGRectMake(0.0f, 0.0f, 1.0f, 1.0f);
UIGraphicsBeginImageContext(rect.size);
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSetFillColorWithColor(context, [color CGColor]);
CGContextFillRect(context, rect);
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return image;
}
@end