cocoa-touch

IPhone/IPad: Image Resolution Question

So I'm making a universal app (iphone3gs/iphone4/ipad/)... But I have a question about images. Say we have an image of a smiley face... Would you have 3 separate images (each saved with a different width/heights) for all devices i.e.: smiley-iPad.png (for ipad) smiley.png (for iphone 3gs) [email protected] (for iphone 4) or would you j...

How to create thumbnail view for iPad?

Hi, I want a tutorial for help me to create a table view thumbnail like this. I use UItableView to implement this view and try to custom UITableViewCell but UITableViewCell can't support anyone can sugess me thank. ...

Navigating thru views with back / forward buttons (like a browser < > )

Hi, I have 3 tableviews (each has ca. 100 rows). The last view is a simple UIView (detailview). My idea was to create a navigation like a browser. Structure: Table1 > Table2 > Table3 > Detail Navigation sequence: (sry can't publish images :-| ) Table 1 ACTION +--------------------+ | | +-------...

How to avoid "unused variable" compiler warnings with conditionally compiled NSLog replacements?

This comes out of my search for a smart variant of NSLog(). One key feature of BetterLog() is that the NSLog() replacement compiles out to nothing for release and distribution builds. The proposed solution (see eg http://stackoverflow.com/questions/300673/is-it-true-that-one-should-not-use-nslog-on-production-code) is define a preprocess...

addSubview modifying the added view's frame

I'm not sure how to ask this question, but here goes... I am rendering a PDF page into a view and adding it to a UIViewController. Works fine, except for some PDF files. For some reason, the code goes through a different path for certain PDF files. It happens when the PDF is created from PowerPoint. After the addSubview call, it goes ...

Where is Xcode's Build and Archive command looking for its iTunes artwork?

I just found out about the Build and Archive option, and it looks very nice. However, my application build with Build and Archive has a big question mark as its artwork in the Organizer window, instead of my nice iTunesArtwork file. I tried to have it in my project as PNG, JPG, with or without extension. I probably missed something sim...

Can't add a UISplitView as a Tab Item in IB?

Is there a reason why I can't add a UISplitviewController as the child of a UITabBarController in Interface Builder? I realize I could do this programatically, but all of a sudden I'm questioning if this is a legit way to go. This is what I'm planning on doing: Create a Master View Controller (UITableViewController with accompanying ...

Why releasing an UIAlertView just afer showing it whereas it is not a blocking method ?

Hi, I have been studying how to display a modal view with UIAlertView for a few hours and I understood that showing it does not "block" the code (the modal window is displayed and the program keeps running - we must use delegate to catch the selected actions on this modal window). Then I studied several examples and noticed that every e...

Question about UIWebView for use in my help screen

So I made a UIWebView and I had it read a local help.html file. This is for my app's help screen. Now my question is two-fold: if I say have a link in there to go to either my website or something then people click that link and it's within the uiwebview! How would I go about launching safari instead? target='_blank' doesn't seem to ...

iOS using External Object in Nib

I am writing an application that needs to interfaces with different backend systems. I decided to use a Protocol in order to abstract my backend Classes. I created a nib called LoginViewController that contains an "External Object" reference of type "NSObject", and wired it to the systemDelegate outlet in my LoginViewController. @interf...

Fixing the orientation of view controllers

Hi friends... I have a button in my RootViewController .... when i click on this button it will navigate to some otherViewController. but i want that when i click on the Button otherViewController's Orientation should be Landscape & when i back from this page(otherViewController) i should got again Portrait mode. lots of Thanks for any ...

using tabBar Delegate methods from tabBarController.

Hi I have a tabBarController,I want to use the delegate method of tabBarDelegate not of the tabBarControllerDelegate.i.e; I want to use - (void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item I am doing this: self.tabBarController.tabBar.delegate = self; and then using the above method but the problem is that the above...

IPhone: Custom Button - Why is title not showing?

So I basically dragged a button from interface builder's library, turned it into a Custom button. Then I added one png for the "default state configuration" and another png for the "highlighted state configuration". Let's just assume these png's are a red box and a blue box. Now, I'd like the Title to display for the button i.e., "Press...

calling viewDidLoad after some delay

Hi The scenario is as follows: My application has a tabBarController on tapping a tab there occurs some parsing of XML from server which takes some time.The data recovered from parsing is gonna be there on the view of the selected viewController(i.e; the data is used in the viewDidLoad method).Now how can I ensure that the viewDidLoad ...

Present UIView on top of UITabBar

I am drawing a custom view (UIDatePicker) over my table view which is nested within a UITabBarController. When I add my custom view as below, it gets clipped by the tab bar. [self.view addSubview:customDateView]; Does anyone have a recommendation on how to go around this? Can I hide the tab bar? Thanks in advance, Ricky. ...

Newbie: how do I refresh TabView cells / trigger viewWillAppear in TabView?

Hi everybody, I am fairly new to iPhone/ObjC programming, though I have several years of experience in coding, particularly DB development. The project I chose as my debut is a little app meant to support playing a board game, where one is required to make notes of the playing pieces status. In short, I want to replace pen and paper wi...

ManagedObjectContext seems to change after save and can't be changed by some other ViewController

Hi all I have a MOC created in my AppDelegate class. I have a MOC property in my RootView which is set by the AppDelegate with something like: rootView.managedObjectContext = self.managedObjectContext; This rootView creates at some time a ModalView and sets there a MOC property also by the same way. Everything works fine. I can crea...

Where is [NSIndexPath row] documented?

Can anyone point me to where [indexPath row] is described in the documentation, I have looked at NSIndexPath but I can't find any mention of "row"? I am assuming its an NSUInteger, but I would also like to double check its type and see what other properties are available. Example: - (void)tableView:(UITableView *)tableView didSelectRo...

display text in uiwebview in iphone

I want to display data which is text data , in the uiwebview can some one guide how to do the same. ...

Overriding internal UIViewController methods because an internal method is giving me bugs

What are the consequences of overriding internal UIViewController methods? [UIViewController viewDidMoveToWindow:shouldAppearOrDisappear:] is giving me some problems. It resizes my frame to values I do not desire sometimes. I do not even know where it picks off the new frame's values (it is close to the size of the superview to where I ...