Iñigo Valentin 9 лет назад
Родитель
Сommit
cd8d5e84f9
2 измененных файлов с 4 добавлено и 5 удалено
  1. 2 2
      app/GalleryView.swift
  2. 2 3
      app/RowGallery.swift

+ 2 - 2
app/GalleryView.swift

@@ -87,8 +87,8 @@ class GalleryView: UIView {
 				id = r.value(forKey: "id")! as! Int
 				
 				print("GALLERY:DEBUG: Setting title")
-				//title = r.value(forKey: "title_\(lang)")! as! String
-				//row.setTitle(text: title)
+				title = r.value(forKey: "title_\(lang)")! as! String
+				row.setTitle(text: title)
 				
 				/* TODO: Get 4 random images from the album
 				// Get main image

+ 2 - 3
app/RowGallery.swift

@@ -76,7 +76,7 @@ Extension of UIView to be formatted as sections.
 		
 		//Populate review array
 		//print("ROWGALLERY:DEBUG: Populating preview array")
-		//preview = [photo0, photo1, photo2, photo3]
+		preview = [photo0, photo1, photo2, photo3]
 		
 		// Set tap recognizer
 		/*print("ROW_BLOG:DEBUG: set tap recognizer")
@@ -99,8 +99,7 @@ Extension of UIView to be formatted as sections.
 	:param: text The new title.
 	*/
 	func setTitle(text: String){
-		print("ROWGALLERY:DEBUG: Setting title: \(title)")
-		title.text = text.stripHtml()
+		title.text = "  \(text.stripHtml())"
 	}
 	
 	/**