i'm starting to get really frustrated...
first MFMessageComposeViewController and MFMailComposeViewController were inheriting the UIAppearance changes I was making to my view controller...
I finally sorted that out by subclassing my navigationController and containing my UIAppearance changes to the custom navigationController's class...
But now I have the problem all over again with a youtube video in my uiwebview. once again i have a subclassed viewController and i'm using appearanceWhenContainedIn:myViewController, but the youtube video appears to be contained within my custom view controller....
this is really starting to bug me. apple explicitly says to not customize these views, in the case of the youtube video, i'm not even using mpmovieplayer its just right out of uiwebview... i really don't want to have to drop the whole mpmovieplayer framework into my project just to set nil values for uiappearance for this class...
and even if i do that, i'm unsure how to get the default titletextattributes to reapply them....
Why are these views responding to uiappearance in the first place? shouldn't apple have explicitly disallowed them from inheriting uiappearance changes?
please if anybody has advice let me know
Related
Question
In the docs for MFMessageComposeViewController apple says:
Important The message composition interface itself is not customizable and must not be modified by your application.
But navigationbar and barbuttonitems in the MFMessageComposeViewController and the MFMailComposeViewController are inheriting all the styling I've done through UIAppearance.
I tried to revert to default appearance by using UIAppearance containment and setting the navigationbar/barbuttonitem background images to nil, but I couldn't figure out how to restore the default titleTextAttributes for the navigationbar and barbuttonitem.
I tried going the other route and using containment to restrict the styling to my navigation controller, but it seems like MFMessageComposeViewController and MFMailComposeViewController are contained within my navigaton controller anyway, so this isn't helping.
So my questions are:
1) will changing the navbar appearance on MFMessageComposeView and MFMailComposeView be an issue at app store approval? (if it's not an issue I can keep the custom styles.)
2) is there a way to present the ComposeViewController so that it won't be contained within my navigation controller?
3) or simply, how can i restore the default title text attributes for the barButtonItems and navigationBar?
It seems to be a rather old question, but:
1). No, changing appearance of navigation bar will not affect AppStore approval. Mentioned Apple note is related to fields of MFMessageComposeViewController (e.g. To: Cc: ...), not the navigation bar. (We had an approved app with such customized navbar)
2, 3) No need for that =)
I am trying to replicate the feature in voice memos app that uses a custom UiTabBar displaying a slider (showing how long and where the the audio currently is) and two buttons (delete and share). I am struggling to find answers as to generate a similar tabbar that can control the content shown in the background. I would appreciate any comments or suggestions on how to achieve this with monotouch. Thanks.
To put it simply, what you are seeing in the voice memos app is not a tab bar. It is a custom UIView that is at the bottom of the screen.
Create a custom view to put at the bottom, and give it delegate call backs to your controller that also controls your other content. When a button is pressed have you view call back to the delegate and then the delegate can act on it.You may also want to give your custom view an external property so that you can have your controller update the position of the slider.
Hoep this is of some help to you :)
Could anyone provide some guidance on how to implement that speech-bubble like popup menu when you click "More" in the IPhone IPod application toolbar?
I think you are looking for UIPopoverController. Popover controllers are just containers for view controllers: write a view controller that does what you want, and you're set. But this is for iPad. If you want this for iPhone, then read on. I have put up some solutions.
You could even explore UIActionSheet but UIPopOverController gives more flexibility.
I believe you are talking about something like this ?
Here are some solutions you could adopt -
Forgot that you wanted this for iPhone, Have a look at the iPhone UIPopoverController implementation: WEPopover
On iPhone you would generally use a UIActionSheet for a stack of buttons like that. It slides up from the bottom, rather than popping up next to the button, but that's the standard behavior on iPhone.
Or you could manually instantiate a UIView using a custom background image or drawing with transparency, add some UIButtons (or other type of custom view) on top, and also somehow handle all touches outside that view.
Note that is is non-standard UI. An actionsheet would be more HIG compliant.
I have been trying to integrate the TTPhotoViewController into a UITabBarController for a while but have not succeed.
The TTPhotoViewController works fine in a stand-alone fashion but I can't "press it" into a TabBar.
Has anyone come across an example that would do it?
Your help is much appreciated.
I had the same issue, but I found an alternative solution than using Three20. I ended up using the KTPhotoBrowser found at: https://github.com/kirbyt/KTPhotoBrowser
I got KTPhotoBrowser working in about 15 minutes. What I like most is its simplicity: just copy a few .h/.m files to your project. That's it...
It is only a photo browser though, no extra controls as Three20 has...
Also, with a couple of "release" removals, it is ARC compatible in iOS5, and storyboard plays well with it. It comes with samples for local pics, flickr, or web site pics.
Works in tabbarcontroller if you place the view controller inside a navigation controller, although it seems to have interfered with my subclassing of tabbarcontroller which I had implemented in order to have landscape orientation enabled for one of the views (to show video).
In Interface Builder, I dragged a UITableViewController object from the library into the project. Then, a tableview popped up. How do I get that tableview inside my already existing window?
Thanks, I'm totally lost!
That tableview is part of the UITableViewController, and is connected to its view property. The second window pops up so you can set that UITableView's properties directly.
If you're just starting out, I'd suggest checking out a few tutorial. The site I started learning from is called http://icodeblog.com/, and I'd also recommend the Beginning iPhone Development book by Jeff LaMarche and Dave Mark. Also, if you have iTunes, the Stanford iTunes class is a terrific way to learn in-depth about iPhone development, and it is free to download from iTunesU.
If you have created a view based application, the thing that you need is to add a uitableview from the library to the view. Be sure that you add uitableview, not its controller. It will be seen under dataviews
You have to take UIViewController first and bind it with view. Then add UITableView in your controller and bind it with IBOutlet object of UITableView.
Then you have to set datasource and delegate of UITableView. That's all. Now you can access all the methods of UITableVIew inside your controller.
If you still find any problem then please let me know. I will definitely help you out to solve this problem.