瀏覽代碼

Apex Mobile
修复communicaiton 不支持富文本的问题

Ray Zhang 8 年之前
父節點
當前提交
af95146c74

二進制
Apex Mobile/Apex Mobile.xcodeproj/project.xcworkspace/xcuserdata/Ray.xcuserdatad/UserInterfaceState.xcuserstate


+ 4 - 4
Apex Mobile/Apex Mobile.xcodeproj/xcuserdata/Ray.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

@@ -287,7 +287,7 @@
             endingColumnNumber = "9223372036854775807"
             startingLineNumber = "573"
             endingLineNumber = "573"
-            landmarkName = "-tableView:heightForFooterInSection:"
+            landmarkName = "-tableView:heightForHeaderInSection:"
             landmarkType = "7">
          </BreakpointContent>
       </BreakpointProxy>
@@ -522,7 +522,7 @@
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "Apex Mobile/DetailCellWeb.m"
-            timestampString = "547788747.174944"
+            timestampString = "548065348.103058"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             startingLineNumber = "52"
@@ -538,7 +538,7 @@
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "Apex Mobile/DetailCellWeb.m"
-            timestampString = "547788747.175078"
+            timestampString = "548065348.103134"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             startingLineNumber = "43"
@@ -554,7 +554,7 @@
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "Apex Mobile/DetailCellWeb.m"
-            timestampString = "547788747.175141"
+            timestampString = "548065348.103191"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             startingLineNumber = "46"

+ 13 - 1
Apex Mobile/Apex Mobile/AMCommContentCell.m

@@ -36,8 +36,20 @@
 }
 
 - (void)setContent:(NSString *)content {
+    
+    //font hack
+//    content = [NSString stringWithFormat:@"<font size=4>%@</font>",content];
     _content = content;
-    self.contentTextView.text = _content;
+    
+    
+    NSAttributedString *attributedString = [[NSAttributedString alloc]
+                                            initWithData: [_content dataUsingEncoding:NSUnicodeStringEncoding]
+                                            options: @{ NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType }
+                                            documentAttributes: nil
+                                            error: nil
+                                            ];
+    [self.contentTextView setFont:[UIFont systemFontOfSize:20]];
+    self.contentTextView.attributedText = attributedString;
 }
 
 - (void)setTime:(NSString *)time {

+ 1 - 0
Apex Mobile/Apex Mobile/DetailPageViewController.m

@@ -1287,6 +1287,7 @@
             NSString *time = [item objectForKey:@"mst_time"];
             NSString *email = [item objectForKey:@"email_url"];
             
+            
             [cell setSender:sender];
             [cell setContent:content];
             [cell setTime:time];