TTPhotoViewController in UITabBarController - iphone

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).

Related

Integrating xib file to stroyboard under UI scrollView?

As in the screenshot 1, I am trying to design view that is longer then screen size of iPhone.
and in second screenshot I changed the size to freeform which is giving me liberty to create longer view than iPhone's length.
My question is is it a standard way to solve this problem. where as my understanding was that we are not suppose to use xib files anymore after storyboard because every thing was moved to storyboard.
So to solve this this problem Do I have to use view(xib) and make it as subview of UIscroll view.
is that a standard way to solve these kind of problems or do we have something with storyboard equivalent which is more efficient ?
PS: I have been researching this problem from past few days. All related questions over here and web, are adding UIView programmatically to ViewController but not a single example I found where one is designing the UIView in Xcode thru xib file and adding it to UIScroll View. Which is common real world problem. all the app where views are longer or wider than screen size are not done programmatically all together. At least I think they are being designed and them added to the Viewcontroller. Please correct me If I am wrong.
The answer is, as it's always been on iPhone, modal views which come and go as needed. You can temporarily add child view controllers, alert views, 3rd party iphone compatible popover knockoffs....
Of course UIView still exists - so where is the problem? What you probably mean is that you cannot set an UIView in a storyboard, storyboards only contain view controllers. But you can still make a xib file containing an UIView of any size you like, and add that one to your scroll view.

Link IBOutlet to both iPhone and iPad Storyboards

I am writing a universal application. As far as I can tell, it's not possible to use Interface Builder to link an IBOutlet, which is already linked to the iPhone storyboard, to the iPad storyboard?
What are possible workarounds for this? Should I just edit the storyboard via text editor?
It doesn't really seem sensible to have an IBOutlet for each device if it's the exact same element behaving in the exact same fashion.
Cheers-
You should be perfectly capable and able to add IBOutlet's to both an iPhone_Storyboard file and likewise the same IBOutlet's on an iPad_Storyboard file. What does it appear to be doing, simply detaching your previous connection in the other Storyboard file?
I've done this on multiple universal applications without an issue.
I ran into this issue as well. My problem was that I forgot to make sure that the Custom Class of the UIView were the same in both the iPhone and iPad versions of the storyboard. After fixing that, Xcode instantly let me connect the outlets.

Iphone dev - Multiview app with storyboard

I have seen some tutorials about iphone development, but they're before ARC and before storyboard it seems.
The guy creates a switch that will switch between two views.
A class with a blue background, and a class with a red background.
How would you do this in IOS5 with storyboard?
I've heard about segues, but they get a 'back' button, which the guy in the tutorial didnt get - he simply changed between views my tapping the switch/button.
You better go through this tutorials to understand how to develop app in IOS 5. The tutorials, which you have already seen are for ios4 and prior to it. Also you can use those in IOS 5 too. But Storyboard is much easier than XIB.
http://www.techotopia.com/index.php/IPhone_iOS_5_Development_Essentials
http://www.techotopia.com/index.php/Using_Xcode_Storyboarding_%28iPhone_iOS_5%29
Anyway #dew given you the correct answer.
You need to add 2 View Controllers into your storyboard and then embed in navigation controller. After you create some button in one view, you just gotta ctrl-drag it to the other view and select push, that should do it. Or simply chech out this tutorial http://maybelost.com/2011/10/tutorial-storyboard-in-xcode-4-2-with-navigation-controller-and-tabbar-controller-part1/ :)
I would highly suggest watching the first 2 or 3 lectures of Stanford's CS193P introductory iPhone programming course. It's free and will start you off on the right foot. It's also targeted for iOS5 and Xcode 4. Check it out at:
http://itunes.apple.com/itunes-u/ipad-iphone-application-development/id473757255
To answer your question, moving between view controllers is usually done using a container controller or pushing view controllers 'modally'. I would suggest reading the View Controller Programming Guide put out by apple for an overview of how these things work.
In iOS5 you can use storyboards to set-up segues (as you suggested). They don't always 'give you a back' button, only when you segue between view controllers within a navigation controller. You can have a button push a view controller onto a screen by setting up target-action.
Again, the iTunesU lectures will cover all this. Check it out!

MGSplitViewController using Storyboards

I have been working on this for some time now and just cant quite get it to work... Has anyone implemented a MGSplitViewController app using storyboards in iOS 5? I just cant get anything to show up like in the example project and was wondering if there were any tutorials or just steps to getting this to work...
Thanks
iOS 5 allows you to custom create View Controller containers.
Refer to "Implementing UIViewController Containment". They have a sample project demo, but not sure if they have published the source code.
I think you can create a root ViewController that holds two more child ViewControllers
Child 1 - Has UITableView and is aligned left.
Child 2 - Has UIView for the details on the right.
MGSplitViewController style transition could be achieved through transitionFromViewController:toViewController:

Is there an iPhone library to provide something similar to an iPad popover?

Is there some library that provides a UIView/UIViewController similar to the iPad popover on the iPhone? I'm just talking about a temporary view that appears on top of the current view, and does the nice transitions that a UIPopoverView does on an iPad.
Just to complete the question. A iPhone popover implementation is hosted on GitHub: WEPopover
You can try this on also.
Click here to download FPPopover