Showing
6 changed files
with
26 additions
and
6 deletions
@@ -138,6 +138,10 @@ | @@ -138,6 +138,10 @@ | ||
138 | 31CCA53D1D2613D800ADF9F0 /* UIViewAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = 31CCA53C1D2613D800ADF9F0 /* UIViewAdditions.m */; }; | 138 | 31CCA53D1D2613D800ADF9F0 /* UIViewAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = 31CCA53C1D2613D800ADF9F0 /* UIViewAdditions.m */; }; |
139 | A09B25771CE57CAF00E68E28 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A09B25761CE57CAF00E68E28 /* SystemConfiguration.framework */; }; | 139 | A09B25771CE57CAF00E68E28 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A09B25761CE57CAF00E68E28 /* SystemConfiguration.framework */; }; |
140 | A51F2241B9D9A5E207DF1E68 /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = A2F123EA9030672A0EFEF6CC /* libPods.a */; }; | 140 | A51F2241B9D9A5E207DF1E68 /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = A2F123EA9030672A0EFEF6CC /* libPods.a */; }; |
141 | + D962AC161D30C48C007834D4 /* message_Tip@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = D962AC141D30C48C007834D4 /* message_Tip@2x.png */; }; | ||
142 | + D962AC171D30C48C007834D4 /* message_Tip@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = D962AC151D30C48C007834D4 /* message_Tip@3x.png */; }; | ||
143 | + D962AC1A1D30C4E2007834D4 /* messageArrow@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = D962AC181D30C4E2007834D4 /* messageArrow@2x.png */; }; | ||
144 | + D962AC1B1D30C4E2007834D4 /* messageArrow@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = D962AC191D30C4E2007834D4 /* messageArrow@3x.png */; }; | ||
141 | EFF834691CEB638B00345113 /* CoreTelephony.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A09B25741CE57CA000E68E28 /* CoreTelephony.framework */; }; | 145 | EFF834691CEB638B00345113 /* CoreTelephony.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A09B25741CE57CA000E68E28 /* CoreTelephony.framework */; }; |
142 | /* End PBXBuildFile section */ | 146 | /* End PBXBuildFile section */ |
143 | 147 | ||
@@ -354,6 +358,10 @@ | @@ -354,6 +358,10 @@ | ||
354 | A09B25741CE57CA000E68E28 /* CoreTelephony.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreTelephony.framework; path = System/Library/Frameworks/CoreTelephony.framework; sourceTree = SDKROOT; }; | 358 | A09B25741CE57CA000E68E28 /* CoreTelephony.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreTelephony.framework; path = System/Library/Frameworks/CoreTelephony.framework; sourceTree = SDKROOT; }; |
355 | A09B25761CE57CAF00E68E28 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; }; | 359 | A09B25761CE57CAF00E68E28 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; }; |
356 | A2F123EA9030672A0EFEF6CC /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; }; | 360 | A2F123EA9030672A0EFEF6CC /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; }; |
361 | + D962AC141D30C48C007834D4 /* message_Tip@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "message_Tip@2x.png"; sourceTree = "<group>"; }; | ||
362 | + D962AC151D30C48C007834D4 /* message_Tip@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "message_Tip@3x.png"; sourceTree = "<group>"; }; | ||
363 | + D962AC181D30C4E2007834D4 /* messageArrow@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "messageArrow@2x.png"; sourceTree = "<group>"; }; | ||
364 | + D962AC191D30C4E2007834D4 /* messageArrow@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "messageArrow@3x.png"; sourceTree = "<group>"; }; | ||
357 | DF5CC49E6ACE4D402D22806C /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.debug.xcconfig; path = "Pods/Target Support Files/Pods/Pods.debug.xcconfig"; sourceTree = "<group>"; }; | 365 | DF5CC49E6ACE4D402D22806C /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.debug.xcconfig; path = "Pods/Target Support Files/Pods/Pods.debug.xcconfig"; sourceTree = "<group>"; }; |
358 | E02A0042E44F888A50E7158C /* Pods.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.release.xcconfig; path = "Pods/Target Support Files/Pods/Pods.release.xcconfig"; sourceTree = "<group>"; }; | 366 | E02A0042E44F888A50E7158C /* Pods.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.release.xcconfig; path = "Pods/Target Support Files/Pods/Pods.release.xcconfig"; sourceTree = "<group>"; }; |
359 | EF14E52B1C884C71002F1BEF /* YohoLive.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = YohoLive.app; sourceTree = BUILT_PRODUCTS_DIR; }; | 367 | EF14E52B1C884C71002F1BEF /* YohoLive.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = YohoLive.app; sourceTree = BUILT_PRODUCTS_DIR; }; |
@@ -485,6 +493,10 @@ | @@ -485,6 +493,10 @@ | ||
485 | 2EA13A011D05733B0037C9EB /* resource */ = { | 493 | 2EA13A011D05733B0037C9EB /* resource */ = { |
486 | isa = PBXGroup; | 494 | isa = PBXGroup; |
487 | children = ( | 495 | children = ( |
496 | + D962AC181D30C4E2007834D4 /* messageArrow@2x.png */, | ||
497 | + D962AC191D30C4E2007834D4 /* messageArrow@3x.png */, | ||
498 | + D962AC141D30C48C007834D4 /* message_Tip@2x.png */, | ||
499 | + D962AC151D30C48C007834D4 /* message_Tip@3x.png */, | ||
488 | 2E64AB921D08099E004307A3 /* launchimage1@2x.png */, | 500 | 2E64AB921D08099E004307A3 /* launchimage1@2x.png */, |
489 | 2E64AB931D08099E004307A3 /* launchimage1@3x.png */, | 501 | 2E64AB931D08099E004307A3 /* launchimage1@3x.png */, |
490 | 2EA13A021D05733B0037C9EB /* adjust.png */, | 502 | 2EA13A021D05733B0037C9EB /* adjust.png */, |
@@ -798,11 +810,14 @@ | @@ -798,11 +810,14 @@ | ||
798 | 2EA13A4A1D05733B0037C9EB /* log.png in Resources */, | 810 | 2EA13A4A1D05733B0037C9EB /* log.png in Resources */, |
799 | 2EA13A411D05733B0037C9EB /* Icon-Small-50@2x.png in Resources */, | 811 | 2EA13A411D05733B0037C9EB /* Icon-Small-50@2x.png in Resources */, |
800 | 2EA13A351D05733B0037C9EB /* black.png in Resources */, | 812 | 2EA13A351D05733B0037C9EB /* black.png in Resources */, |
813 | + D962AC161D30C48C007834D4 /* message_Tip@2x.png in Resources */, | ||
814 | + D962AC171D30C48C007834D4 /* message_Tip@3x.png in Resources */, | ||
801 | 2EA13A3F1D05733B0037C9EB /* Icon-72@2x.png in Resources */, | 815 | 2EA13A3F1D05733B0037C9EB /* Icon-72@2x.png in Resources */, |
802 | 2EA13A491D05733B0037C9EB /* line2.png in Resources */, | 816 | 2EA13A491D05733B0037C9EB /* line2.png in Resources */, |
803 | 2EB66FB61D18EEC700E91AAE /* YH_BarrageMsgCell.xib in Resources */, | 817 | 2EB66FB61D18EEC700E91AAE /* YH_BarrageMsgCell.xib in Resources */, |
804 | 2EA13A561D05733B0037C9EB /* white.png in Resources */, | 818 | 2EA13A561D05733B0037C9EB /* white.png in Resources */, |
805 | 2EA13A431D05733B0037C9EB /* Icon@2x.png in Resources */, | 819 | 2EA13A431D05733B0037C9EB /* Icon@2x.png in Resources */, |
820 | + D962AC1B1D30C4E2007834D4 /* messageArrow@3x.png in Resources */, | ||
806 | 2EA13A3A1D05733B0037C9EB /* flash_off.png in Resources */, | 821 | 2EA13A3A1D05733B0037C9EB /* flash_off.png in Resources */, |
807 | 2EA13A391D05733B0037C9EB /* fill.png in Resources */, | 822 | 2EA13A391D05733B0037C9EB /* fill.png in Resources */, |
808 | 2EA13A4B1D05733B0037C9EB /* log2.png in Resources */, | 823 | 2EA13A4B1D05733B0037C9EB /* log2.png in Resources */, |
@@ -823,6 +838,7 @@ | @@ -823,6 +838,7 @@ | ||
823 | 2EA13A331D05733B0037C9EB /* background@2x.jpg in Resources */, | 838 | 2EA13A331D05733B0037C9EB /* background@2x.jpg in Resources */, |
824 | 2EA13A371D05733B0037C9EB /* camera2.png in Resources */, | 839 | 2EA13A371D05733B0037C9EB /* camera2.png in Resources */, |
825 | 2EA13A4E1D05733B0037C9EB /* QR_code.png in Resources */, | 840 | 2EA13A4E1D05733B0037C9EB /* QR_code.png in Resources */, |
841 | + D962AC1A1D30C4E2007834D4 /* messageArrow@2x.png in Resources */, | ||
826 | 2EA13A451D05733B0037C9EB /* landscape.png in Resources */, | 842 | 2EA13A451D05733B0037C9EB /* landscape.png in Resources */, |
827 | 2EA13A4C1D05733B0037C9EB /* portrait.png in Resources */, | 843 | 2EA13A4C1D05733B0037C9EB /* portrait.png in Resources */, |
828 | 2EA13A341D05733B0037C9EB /* beauty.png in Resources */, | 844 | 2EA13A341D05733B0037C9EB /* beauty.png in Resources */, |
YohoLive/resource/messageArrow@2x.png
0 → 100644

1.09 KB
YohoLive/resource/messageArrow@3x.png
0 → 100644

1.15 KB
YohoLive/resource/message_Tip@2x.png
0 → 100644

1.58 KB
YohoLive/resource/message_Tip@3x.png
0 → 100644

1.99 KB
@@ -15,7 +15,7 @@ | @@ -15,7 +15,7 @@ | ||
15 | #define kBarrageTableViewWidth (245 * kScreenPointScale) | 15 | #define kBarrageTableViewWidth (245 * kScreenPointScale) |
16 | #define kInputTextFieldHeight 34 | 16 | #define kInputTextFieldHeight 34 |
17 | #define kInputTextFieldBottomEdge 49 | 17 | #define kInputTextFieldBottomEdge 49 |
18 | -#define kPaddingLeft 15 | 18 | +#define kPaddingLeft 13 |
19 | #define kCloseButtonWidth 19 | 19 | #define kCloseButtonWidth 19 |
20 | 20 | ||
21 | #define kMessageTipLeftEdge 111 | 21 | #define kMessageTipLeftEdge 111 |
@@ -114,14 +114,14 @@ | @@ -114,14 +114,14 @@ | ||
114 | 114 | ||
115 | [self.view addSubview:self.bottomContainerView]; | 115 | [self.view addSubview:self.bottomContainerView]; |
116 | 116 | ||
117 | - self.messageTip = [[UIImageView alloc] initWithFrame:CGRectMake(SCREEN_WIDTH - kMessageTipWidth - kMessageTipLeftEdge, self.barrageTableView.bottom - 5 - kMessageTipHeight, kMessageTipWidth, kMessageTipHeight)]; | 117 | + self.messageTip = [[UIImageView alloc] initWithFrame:CGRectMake(SCREEN_WIDTH - kMessageTipWidth - kMessageTipLeftEdge, self.barrageTableView.bottom - kMessageTipHeight, kMessageTipWidth, kMessageTipHeight)]; |
118 | self.messageTip.image = [UIImage imageNamed:@"message_Tip"]; | 118 | self.messageTip.image = [UIImage imageNamed:@"message_Tip"]; |
119 | self.messageTip.userInteractionEnabled = YES; | 119 | self.messageTip.userInteractionEnabled = YES; |
120 | UITapGestureRecognizer *tapGR = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(newsBubbleClick:)]; | 120 | UITapGestureRecognizer *tapGR = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(newsBubbleClick:)]; |
121 | tapGR.numberOfTapsRequired = 1; | 121 | tapGR.numberOfTapsRequired = 1; |
122 | [self.messageTip addGestureRecognizer:tapGR]; | 122 | [self.messageTip addGestureRecognizer:tapGR]; |
123 | 123 | ||
124 | - self.messageArrow = [[UIImageView alloc] initWithFrame:CGRectMake(10, 7, 10, 8)]; | 124 | + self.messageArrow = [[UIImageView alloc] initWithFrame:CGRectMake(10, 8, 10, 6)]; |
125 | self.messageArrow.image = [UIImage imageNamed:@"messageArrow"]; | 125 | self.messageArrow.image = [UIImage imageNamed:@"messageArrow"]; |
126 | [self.messageTip addSubview:self.messageArrow]; | 126 | [self.messageTip addSubview:self.messageArrow]; |
127 | 127 | ||
@@ -175,6 +175,10 @@ | @@ -175,6 +175,10 @@ | ||
175 | msgCount = [NSString stringWithFormat:@"%ld条信息",(long)[newMsgCount integerValue]]; | 175 | msgCount = [NSString stringWithFormat:@"%ld条信息",(long)[newMsgCount integerValue]]; |
176 | } | 176 | } |
177 | [self.newsBubble setText:msgCount]; | 177 | [self.newsBubble setText:msgCount]; |
178 | + CGSize size = CGSizeMake(60,kMessageTipHeight); | ||
179 | + CGSize labelsize = [self.newsBubble sizeThatFits:size]; | ||
180 | + [self.newsBubble setFrame:CGRectMake(25, (kMessageTipHeight - labelsize.height) / 2, labelsize.width, labelsize.height)]; | ||
181 | + [self.messageTip setWidth:CGRectGetMaxX(self.newsBubble.frame) + 10]; | ||
178 | [self.messageTip setHidden:NO]; | 182 | [self.messageTip setHidden:NO]; |
179 | } | 183 | } |
180 | 184 | ||
@@ -222,7 +226,7 @@ | @@ -222,7 +226,7 @@ | ||
222 | _newsBubble = [[UILabel alloc]init]; | 226 | _newsBubble = [[UILabel alloc]init]; |
223 | _newsBubble.userInteractionEnabled = YES; | 227 | _newsBubble.userInteractionEnabled = YES; |
224 | _newsBubble.textAlignment = NSTextAlignmentCenter; | 228 | _newsBubble.textAlignment = NSTextAlignmentCenter; |
225 | - _newsBubble.font = [UIFont fontOfLightWithSize:11]; | 229 | + _newsBubble.font = [UIFont fontOfSCWithSize:11]; |
226 | _newsBubble.textColor = [UIColor blackColor]; | 230 | _newsBubble.textColor = [UIColor blackColor]; |
227 | } | 231 | } |
228 | 232 | ||
@@ -300,7 +304,7 @@ | @@ -300,7 +304,7 @@ | ||
300 | CGRect tRect = self.barrageTableView.frame; | 304 | CGRect tRect = self.barrageTableView.frame; |
301 | tRect.origin.y = self.bottomContainerView.top - CGRectGetHeight(tRect) - 5; | 305 | tRect.origin.y = self.bottomContainerView.top - CGRectGetHeight(tRect) - 5; |
302 | self.barrageTableView.frame = tRect; | 306 | self.barrageTableView.frame = tRect; |
303 | - [self.messageTip setY:self.barrageTableView.bottom - 5 - kMessageTipHeight]; | 307 | + [self.messageTip setY:self.barrageTableView.bottom - kMessageTipHeight]; |
304 | 308 | ||
305 | }]; | 309 | }]; |
306 | if (self.keyBoardShowBlock) { | 310 | if (self.keyBoardShowBlock) { |
@@ -324,7 +328,7 @@ | @@ -324,7 +328,7 @@ | ||
324 | CGRect tRect = self.barrageTableView.frame; | 328 | CGRect tRect = self.barrageTableView.frame; |
325 | tRect.origin.y = SCREEN_HEIGHT - CGRectGetHeight(tRect) - kInputTextFieldBottomEdge; | 329 | tRect.origin.y = SCREEN_HEIGHT - CGRectGetHeight(tRect) - kInputTextFieldBottomEdge; |
326 | self.barrageTableView.frame = tRect; | 330 | self.barrageTableView.frame = tRect; |
327 | - [self.messageTip setY:self.barrageTableView.bottom - 5 - kMessageTipHeight]; | 331 | + [self.messageTip setY:self.barrageTableView.bottom - kMessageTipHeight]; |
328 | 332 | ||
329 | }]; | 333 | }]; |
330 | if (self.keyBoardShowBlock) { | 334 | if (self.keyBoardShowBlock) { |
-
Please register or login to post a comment