When I load a HTML page with a .MOV embedded video on my App using a UIWebview it appears a broken icon, any idea? The same HTML page on Iphone Safari works fine and the media player is started without problem...
...
I would like to dynamically hide a button in one of my views, depending on a certain condition.
I tried adding some code to the view controller's -viewWillAppear method, to make the button hidden before displaying the actual view, but I still don't know how to do that.
I have a reference to the button through an IBOutlet, but I'm not s...
There are a couple of different ways to remove HTML tags from an NSString in Cocoa.
One way is to render the string into an NSAttributedString and then grab the rendered text.
Another way is to use NSXMLDocument's -objectByApplyingXSLTString method to apply an XSLT transform that does it.
Unfortunately, the iPhone doesn't support NSAt...
I have a UIWebView in my iPhone app, which merrily shows web content, but it does not render visited links any differently to unvisited links. Ordinarily I'd expect it to use a different colour for visited links, but alas no.
Safari on the other hand deals with its links correctly. I assume that UIWebView is lacking a store of informati...
I'm trying to wrap my head around the roles of UIViews and UIViewControllers. If I'm creating and inserting subviews programmatically, is it typical to do this from the view or the controller?
I'm really just wondering if there's a convention/pattern for this. In my sample application, I'm loading 50 images at runtime, adding them as ...
Please help! Have been staring at this for 12 hours; and have looked online and can't find solution.
In my application, I use 2 UIView controls in separate pages/controllers:
UIImageView (retrieve data via
NSData dataWithContentsOfUrl)
UIWebView
Just to isolate my code, and make it easier to explain, I created a new view based proje...
I have a UIViewController that manages the display of some data. When the user wants to edit this data I push an edit UIViewController onto the stack. When the user is finished editing the top view controller is popped off the stack. What is the most elegant way to know that I need to update my display after the edit view is popped off?
...
I would like to customize the background (and maybe the border too) of all of the UITableViewCells within my UITableView. So far I have not been able to customize this stuff, so I have a bunch of white background cells which is the default.
Is there a way to do this with the iPhone SDK?
...
This might be a bit difficult to explain in writing, so please bear with me here.
Whenever I wanted to customize the style of the status bar to the "dark" one, I simply add the following line to my AppDelegate's -applicationDidFinishLaunching: method:
[application setStatusBarStyle:UIStatusBarStyleBlackOpaque];
This works great, but ...
I'd like to run a method when a user switches to another tab or when the application is closed. Is there a way to do this with the iphone sdk?
I've tried looking at the methods for the view controllers and the tab bars, but I didn't see any methods that seemed to do this.
I've also tried doing this with "Editing Did End" methods, but...
I have an iPhone app that is running great in the simulator. It responds well to the memory warnings by getting rid of everything that is not absolutely essential. When I run it on the device, it runs well. But after a certain amount of usage it crashes with error code 101 - which, from what I can tell, is the OS killing it due to mem...
What do I need to do to NSXMLParser so it handles entity characters? For example, if I have the following element <anElement>Left & Right</anElement> I am only getting " Right" in the parser:foundCharacters: delegate method.
Thanks.
...
Hello,
Is there a way to determine if the screen has been shut off via the top Power button?
I just need to know if the screen has been somehow set to off to kill a loop that updates location.
Thanks
...
I am using UIActivityIndicatorView to showing user that there is something going on, let them wait. But UIActivityIndicatorView looks small, do not have background color, and not very obvious to the user. While in iPhone SDK's UIImagePickerController, it uses the similar mechanism, but with the black background as well as some text besid...
I'd like to popup a simple dialog with an editor box, to let user enter some value then just return. I am wondering whether iPhone SDK has that kind of support.
Thanks.
...
I have an application with 5 UIViewControllers each inside a corresponding UINavigationController, all tucked inside a UITabBarController that displays 5 tabs at the bottom of the screen.
I want to display another UIViewController (inside a UINavigationController) when a dialog button is pressed.
This view should only be loaded and unl...
I am showing an addressbook view to the user and letting them click on a contact and select a phone number. If they select a phone number, I want to get the phone number as an integer and the contact's name as an NSString.
I've tried doing it with the following code:
//printf("%s\n",[[(NSArray *)ABMultiValueCopyArrayOfAllValues(t...
I have subclassed the UITableView control, and the style is grouped, but I do not need the cell separators. I tried setting my table view's separatorStyle to none, but it doesn't work. Can any one help me out?
...
I have a large UIScrollView into which I'm placing 3-4 rather large (320x1500 pixels or so) UIImageView image tiles. I'm adding these UIImageViews to the scroll view inside of my NIB files. I have one outlet on my controller, and that is to the UIScrollView. I'm using a property (nonatomic, retain) for this, and sythesizing it.
My qu...
Is it possible to set some image as title of Navigation bar?
I think NYTimes application used a Navigation bar and title is look like image file.(the reason why it's seems NavigationBar is becuase they use right button to search)
Cheers.
...