From 533b64c22604d191ad6669ee037b153b91ba094e Mon Sep 17 00:00:00 2001 From: Arun Sivakumar Date: Sun, 17 Jan 2016 15:13:25 -0700 Subject: [PATCH] small sized icons - fixed --- Tab Bar Center Tab.xcodeproj/project.pbxproj | 3 + .../UserInterfaceState.xcuserstate | Bin 0 -> 11633 bytes .../xcschemes/Tab Bar Center Tab.xcscheme | 101 ++++++++++++++++++ .../xcschemes/xcschememanagement.plist | 27 +++++ Tab Bar Center Tab/Base.lproj/Main.storyboard | 5 +- Tab Bar Center Tab/ViewController.swift | 11 +- 6 files changed, 141 insertions(+), 6 deletions(-) create mode 100644 Tab Bar Center Tab.xcodeproj/project.xcworkspace/xcuserdata/Arun.xcuserdatad/UserInterfaceState.xcuserstate create mode 100644 Tab Bar Center Tab.xcodeproj/xcuserdata/Arun.xcuserdatad/xcschemes/Tab Bar Center Tab.xcscheme create mode 100644 Tab Bar Center Tab.xcodeproj/xcuserdata/Arun.xcuserdatad/xcschemes/xcschememanagement.plist diff --git a/Tab Bar Center Tab.xcodeproj/project.pbxproj b/Tab Bar Center Tab.xcodeproj/project.pbxproj index 2f08c89..0dc64f6 100644 --- a/Tab Bar Center Tab.xcodeproj/project.pbxproj +++ b/Tab Bar Center Tab.xcodeproj/project.pbxproj @@ -156,6 +156,7 @@ 822C81EB1A96F0AD00F6F217 /* Project object */ = { isa = PBXProject; attributes = { + LastSwiftUpdateCheck = 0720; LastUpgradeCheck = 0610; ORGANIZATIONNAME = videmor; TargetAttributes = { @@ -405,6 +406,7 @@ 822C82141A96F0AD00F6F217 /* Release */, ); defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; }; 822C82151A96F0AD00F6F217 /* Build configuration list for PBXNativeTarget "Tab Bar Center TabTests" */ = { isa = XCConfigurationList; @@ -413,6 +415,7 @@ 822C82171A96F0AD00F6F217 /* Release */, ); defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; }; /* End XCConfigurationList section */ }; diff --git a/Tab Bar Center Tab.xcodeproj/project.xcworkspace/xcuserdata/Arun.xcuserdatad/UserInterfaceState.xcuserstate b/Tab Bar Center Tab.xcodeproj/project.xcworkspace/xcuserdata/Arun.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000000000000000000000000000000000000..4b61e1b6a3d8d803a81762e4321a70e85ac919b8 GIT binary patch literal 11633 zcmcgyd0dp$*T2g!JIuzw%rFBpG9WJOAZV7dCMrq{Zm8kFJiz3@;LHG`nHM$7R?DSq z6>v|pOwF{iMa#4@msZJcg zNP?tDhoX@l4Mr(w2pWopq2VYMrJ;0`jYgu$r~+MqDv<+Kp($u8nueyM8K@e~L{3zT z8ju&Ypn1rL{HP6GgBGJD=vs6$x&_^e?nmoU7wSemXam}a9zfgCF7yaGfF4IrpeNBG zbOgPCj-yx68FUtXfX<<>(a-1?^e0AGie*@XwOEIT;GuXJ9*$FS8cxR4sxrQtzjC7JEWGPuj zt|hmUmE<;Z2f3TvL$;G0&Jd5N4Luah(6ZE}u$ zMm{HBknhM(HzUsWgqI(+rwJN6|~@ zXj(z9pq11?tLPLul}@A6=?q#;XVO`8Hf^Ad)J?CVK6*7>M6aQXDWjcq3B8HlOmCsL z(slGMdN;j?Zlas%19T@nNS~rl(`V?j^m%%e9-}YPSEksTTRomrNQUG{fs{yvw9_Uz z(&lm<{%ZK!YlBnmbsneR-;E+s6eEmwBQ?@65qpr?Yt;7KoQx59nYsC?B{>-xsX2wY zg{k@3Svje>g$3E!rTHU^i;MGX)X`fr+i5T@^+U`n%lUMpATf@Qkv-JGvRodC@X>H=_< zFD_Dz+Q<(WTt=1G>#246%KTH^es`@0R%Ga}bJiAyS1nvPA~$omH8XqBaO=WMP{VNR z$o#BDi%tgBnt`&qkP)^j>LkiRxo8B+s}?lc40|dM4 zkcvj3VwAiUU4llVOVMR$3>u3HP$4Q}YNlaYreo1e&th0CGi*gAprXssI8=tlqY3c2 zoEbq$am>tyup%}AK2KsPHR_lGzaL=G*&HZwxdUFGf1B}(o> zvzes})v$PeD>TJZ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d*N%@QNSLJ_{zbpTY#F0^vrpVmL zvPdp+Y2>Yu8zXl`9*BG*@?hlCk3o-c^0B`cd_>>b&ZLx?b&7U#q@BytuGGxY)N1Bx=4skAi#1C$%QVY1_iDCj9?|U4JgRw2b3k)Q^PJ|0=BVaH z&C8nCHD@(nYDHR&)}%FSY{XNomQ8iv+I&|DY{f$x-L_ftsAW?(@oM< z=qh#7bTf1_b+dK#I=?QUYt^;umg%n3tps_gsry>@gYGBYFS=i&717brNztRCtD?Qp^P>IHt5IaEsw? z!xqCf!*;`ihKCHh47&|a8=f^BHau^5!Ens*lHs`F1H*4dl`+mZ#F%HCW}IVm8taT6 zV+XtiSZ-WpTx-13c(?IhgLY(@xVq(|*(ArYB8LnVvBnGrekh z*Yt(yYty%;A51@)eu)#siQ}Yk^0=$xR>ZB2TN`(0++A_^#N8LSHSU499dSG39*%n? zZcp5axUbCEJlH(eJkDHe_L_a>fVth=VP0sy!@S(^7AlXSv#Pon^IUjb*LnPRmBi7Rxrv z4$DrjmoO+{NJ4hP*o4ay#wU~~R3uDGs7{!jP?O+HSe>vl;Yh-X zgtrskOZXt+)>x~_YPObG{nq=fTdX^+hpZ>8Z&=S* z-?g5#p0j>o{o4AS^#|*3)<0|_o5p6a#o6L*Hd~5qm@UngY0I{awvDk>*_^gU+gw|- zZJuquZGml(joFsiR@iR0-Ie&Ko!Aw2qupvBY|pV5*o*C#+sE6>?G<*1eU81(&eL6g_)FgkBU~uy-v0pxkW6?0 literal 0 HcmV?d00001 diff --git a/Tab Bar Center Tab.xcodeproj/xcuserdata/Arun.xcuserdatad/xcschemes/Tab Bar Center Tab.xcscheme b/Tab Bar Center Tab.xcodeproj/xcuserdata/Arun.xcuserdatad/xcschemes/Tab Bar Center Tab.xcscheme new file mode 100644 index 0000000..7b738be --- /dev/null +++ b/Tab Bar Center Tab.xcodeproj/xcuserdata/Arun.xcuserdatad/xcschemes/Tab Bar Center Tab.xcscheme @@ -0,0 +1,101 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Tab Bar Center Tab.xcodeproj/xcuserdata/Arun.xcuserdatad/xcschemes/xcschememanagement.plist b/Tab Bar Center Tab.xcodeproj/xcuserdata/Arun.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..c2724b1 --- /dev/null +++ b/Tab Bar Center Tab.xcodeproj/xcuserdata/Arun.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,27 @@ + + + + + SchemeUserState + + Tab Bar Center Tab.xcscheme + + orderHint + 0 + + + SuppressBuildableAutocreation + + 822C81F21A96F0AD00F6F217 + + primary + + + 822C82071A96F0AD00F6F217 + + primary + + + + + diff --git a/Tab Bar Center Tab/Base.lproj/Main.storyboard b/Tab Bar Center Tab/Base.lproj/Main.storyboard index 50b05c4..913d097 100644 --- a/Tab Bar Center Tab/Base.lproj/Main.storyboard +++ b/Tab Bar Center Tab/Base.lproj/Main.storyboard @@ -1,7 +1,8 @@ - + - + + diff --git a/Tab Bar Center Tab/ViewController.swift b/Tab Bar Center Tab/ViewController.swift index 657d9cb..e24e930 100644 --- a/Tab Bar Center Tab/ViewController.swift +++ b/Tab Bar Center Tab/ViewController.swift @@ -21,7 +21,7 @@ class ViewController: UIViewController { self.tabBarController?.tabBar.layer.borderWidth = 0 self.tabBarController?.tabBar.layer.borderColor = self.tabBarController?.tabBar.tintColor.CGColor - self.addCenterButtonWithImage(UIImage(named: "camera_button_take.png")!, highlightImage: nil) + self.addCenterButtonWithImage(UIImage(named: "capture-button.png")!, highlightImage: nil) // [self addCenterButtonWithImage:[UIImage imageNamed:@"capture-button.png"] highlightImage:nil]; } @@ -34,8 +34,8 @@ class ViewController: UIViewController { } func addCenterButtonWithImage(buttonImage: UIImage, highlightImage: UIImage?){ - let button = UIButton.buttonWithType(UIButtonType.Custom) as UIButton - button.autoresizingMask = UIViewAutoresizing.FlexibleRightMargin | UIViewAutoresizing.FlexibleLeftMargin | UIViewAutoresizing.FlexibleBottomMargin | UIViewAutoresizing.FlexibleTopMargin + let button = UIButton(type: UIButtonType.Custom) as UIButton + button.autoresizingMask = [UIViewAutoresizing.FlexibleRightMargin, UIViewAutoresizing.FlexibleLeftMargin,UIViewAutoresizing.FlexibleTopMargin,UIViewAutoresizing.FlexibleBottomMargin] button.frame = CGRectMake(0, 0, buttonImage.size.width, buttonImage.size.height) button.setBackgroundImage(buttonImage, forState: UIControlState.Normal) @@ -45,7 +45,10 @@ class ViewController: UIViewController { var heightDifference: CGFloat = buttonImage.size.height - self.tabBarController!.tabBar.frame.size.height if (heightDifference < 0){ - button.center = self.tabBarController!.tabBar.center +// button.center = self.tabBarController!.tabBar.center + var center: CGPoint = self.tabBarController!.tabBar.center + center.y = (center.y ) - self.tabBarController!.tabBar.frame.origin.y + button.center = center }else{ var center: CGPoint = self.tabBarController!.tabBar.center center.y = center.y - self.tabBarController!.tabBar.frame.origin.y - heightDifference/2.0