Hallo,
ich suche nach einer Möglich ein NSString in der Mitte eines Custom Views auszugeben. Bisher habe ich die drawRect Methode benutzt:
Nun ist aber der Punkt links unten am Text mittig. Ich bräuche also eine Möglichkeit die Breite und Höhe des Textes zu bestimmen, oder die Mitte des Textes als Orientierungspunkt zu nutzen.
noch eine weitere Frage:
Ich habe gelesen , dass diese Art Text anzuzeigen relativ langsam ist.
Geht es dabei darum, dass man den Text nicht schnell ändern kann, oder wo liegt da das Problem.
Ich möchte auf dem View einige Strings platzieren, alle werden aber höchstens drei Wörter enthalten.
Schonmal Danke für alle Antworten
Tom
ich suche nach einer Möglich ein NSString in der Mitte eines Custom Views auszugeben. Bisher habe ich die drawRect Methode benutzt:
noch eine weitere Frage:
Ich habe gelesen , dass diese Art Text anzuzeigen relativ langsam ist.
Geht es dabei darum, dass man den Text nicht schnell ändern kann, oder wo liegt da das Problem.
Ich möchte auf dem View einige Strings platzieren, alle werden aber höchstens drei Wörter enthalten.
Schonmal Danke für alle Antworten
Tom