2 questions here.
Firstly:
In my app, there is a detail page and all the info is gathered from a plist. In my nib there are 2 UITextViews to display the data.
My main issue is spacing. As the amount of text in each UITextView is going to change for every category how can I set it so that the bottom UITextView has the same amount of gap/spacing after the first one, depending on the content of the first.
To make things a bit clearer:
UITextView 1 has 5 lines of text and UITextView 2 has 10 lines of text.
The gap between each view should be, for example 10px.
This is easy to setup in IB
Now, if UITextView 1 has 10 lines of text and UITextView 2 also has 10 lines of text, if I build it the text will overlap. How can I apply the 10px gap?
Kinda like margins in HTML/CSS
Hope this is clear!
Secondly:
Since I am very new to iPhone programming, I do not entirely know how to use a SearchBar. How can I setup a search bar using a plist?
Firstly:
In my app, there is a detail page and all the info is gathered from a plist. In my nib there are 2 UITextViews to display the data.
My main issue is spacing. As the amount of text in each UITextView is going to change for every category how can I set it so that the bottom UITextView has the same amount of gap/spacing after the first one, depending on the content of the first.
To make things a bit clearer:
UITextView 1 has 5 lines of text and UITextView 2 has 10 lines of text.
The gap between each view should be, for example 10px.
This is easy to setup in IB
Now, if UITextView 1 has 10 lines of text and UITextView 2 also has 10 lines of text, if I build it the text will overlap. How can I apply the 10px gap?
Kinda like margins in HTML/CSS
Hope this is clear!
Secondly:
Since I am very new to iPhone programming, I do not entirely know how to use a SearchBar. How can I setup a search bar using a plist?