Marino Faggiana 7 years ago
parent
commit
1b3e1528d2

+ 0 - 2
iOSClient/Supporting Files/en.lproj/Localizable.strings

@@ -567,6 +567,4 @@
 // Text File
 
 "_title_new_text_file_"             = "New text file";
-"_untitled_txt_"                    = "Untitled.txt";
-
 

+ 3 - 2
iOSClient/Text/NCText.swift

@@ -28,7 +28,7 @@ class NCText: UIViewController, UITextViewDelegate {
         NotificationCenter.default.addObserver(self, selector: #selector(self.keyboardWillShowHandle(info:)), name: .UIKeyboardWillShow, object: nil)
         NotificationCenter.default.addObserver(self, selector:#selector(self.keyboardWillHideHandle), name: .UIKeyboardWillHide, object: nil)
 
-        self.navigationController?.navigationBar.topItem?.title = NSLocalizedString("_title_new_text_file_", comment: "")
+        self.navigationController?.navigationBar.topItem?.title = NSLocalizedString("_untitled_txt_", comment: "")
         self.navigationController?.navigationBar.barTintColor = NCBrandColor.sharedInstance.brand
         self.navigationController?.navigationBar.tintColor = NCBrandColor.sharedInstance.navigationBarText
         self.navigationController?.navigationBar.titleTextAttributes = [NSForegroundColorAttributeName: NCBrandColor.sharedInstance.navigationBarText]
@@ -57,7 +57,8 @@ class NCText: UIViewController, UITextViewDelegate {
         textView.isUserInteractionEnabled = true
         textView.becomeFirstResponder()
         textView.delegate = self
-        
+        textView.selectedTextRange = textView.textRange(from: textView.beginningOfDocument, to: textView.beginningOfDocument)
+
         textViewDidChange(textView)
     }