Changing position of a table view

2009-09-15 Thread M.S. Hrishikesh
The UI I want is a table view with two buttons below it (iPhone). How do I change the position of a table view ? When I drop a table view into the view window it occupies the entire view. I am able to change the size of the tableview but it it always centered to the view. The IB guide at

Core Data - attribute to hold an array of strings

2009-08-09 Thread M.S. Hrishikesh
I created an Entity called MyPlaces. I want to store a number of strings inside MyPlaces. How do I create an attribute to hold an array of strings? I know how to create an Attribute to hold a single string but I need to hold an array of strings. One way is to create another Entity called

Problems displaying an image in UIWebView

2009-07-16 Thread M.S. Hrishikesh
I am trying to show an image from my Resources directory on a UIWebView along with toms text. I create the UIWebView using loadHTMLString:baseURL:. The string I pass has all of my content in html - the img tag and text. The text gets displayed but the image is shown as a broken link (in the

Re: Problems displaying an image in UIWebView

2009-07-16 Thread M.S. Hrishikesh
Simulator/User/Applications/87888BAB-2F9D-44F6-BEB8-FB7D65D2F1CC/Epicures.app/myImage.png / Hrishi On 7/16/09 8:57 PM, M.S. Hrishikesh wrote: I am trying to show an image from my Resources directory on a UIWebView along with toms text. I create the UIWebView using loadHTMLString:baseURL

Re: Problems displaying an image in UIWebView [solved]

2009-07-16 Thread M.S. Hrishikesh
-BEB8-FB7D65D2F1CC/Epicures.app/myImage.png / Hrishi On 7/16/09 9:58 PM, M.S. Hrishikesh wrote: Forgot to add: I am accessing the image file like this NSString *imageName = [[NSBundle mainBundle] pathForResource:@myImage ofType:@png]; I have confirmed (using NSLog) the path printed

UITextView and UiImageView

2009-07-11 Thread M.S. Hrishikesh
This is a question related to UIKit. Sorry if I am posting to the wrong list. I did not find a more appropriate list at http://lists.apple.com/mailman/listinfo The question: I want to display both text and images in my view. I want the content to be scrollable. When the user scrolls the view

NSUrl: Which method to use

2009-06-27 Thread M.S. Hrishikesh
To create an NSUrl from a file which would be the preferred way NSString *myFile = @myFile.xml; Method A: NSUrl *myUrl = [NSUrl fileURLWithPath:myFile] Method B: NSUrl *myURL = [[NSUrl alloc] initFileURLWithPath:myFile]; Using method B I would need to release my object at some point (this is

Which drawing tool for a simple task

2009-06-25 Thread M.S. Hrishikesh
Hi I want to display an image with a border around it. The border may be a simple coloured box or another image (like a wooden frame around an image). Can I do this using just a ImageView? I read parts of the Graphics and drawing guide. I am not sure if I need to use a custom view for this