Using the example found here:
https://github.com/CosmicMind/Samples/tree/master/Projects/Programmatic/PageTabBarController
How can I reproduce this without making any of the viewcontrollers as the root viewcontroller?
Material 2.8.0 replaces this component with the TabsController and you can try a sample TabsController project. As well, the TabsController is a UIViewController, so you can treat it as such. Hope this helps.
Related
I would like to use one of these two cocoapods, https://github.com/graycampbell/GCCalendar, and https://github.com/n8armstrong/CalendarView
I installed with pod install that went great. But when it comes to implementation I don't get it.
For GCCalendar it says "Create a subclass of GCCalendarViewController" and when I do that my Xcode turns red from errors. CalendarView docs say to use #IBOutlet weak var calendar: CalendarView! but when I do that I get errors. CalendarView! doesn't exist.
Can somebody explain what should I do to use CalendarView (I like this more). What should I do first in Xcode after installing pods?
Here is what I get:
Sometime Xcode can not see your pod after you install it in Swift. : (
You can fix issue by press Cmd+B for Build Project after you install Pod.
You forgot to import your library above your ViewController, so Xcode doesn't understand CalendarView
let import it:
import CalendarView
then build project to notify Xcode understand that you have just imported it :).
then initialize CalendarView inside your ViewController with it's frame, like so:
let calendar = CalendarView(frame: CGRectMake(0, 0, CGRectGetWidth(view.frame), 320))
view.addSubview(calendar)
if you want to use #IBOutlet weak var calendar: CalendarView!
You need to drag a UIView to your storyboard, then set it's class is CalendarView, then reference it to your IBOutlet. Hope this help you.
I manage to solve this on my own. I'll post an answer in case somebody else sucks here.
In my case, CalendarView.bundle was not present in .../Build/Products/Debug-iphonesimulator/CalendarView/
So I cp -r from /Library/Developer/Xcode/DerivedData/yourapp/Build/Products/Debug-iphonesimulator/CalendarView/CalendarView/CalendarView.bundle
This works.
I have an app with two localizations.
Usually I use 'NSLocalizedString' and keep the same source code for both localizations, but one of my ViewControllers has to look and function different for each locale.
So I pressed 'Localize..' and created two localized versions of it. Normal stuff.
Since then - on runtime I get:
Unknown class MyViewController in Interface Builder file.
and the viewcontroller is not displayed (it's a UITableViewController if it matters).
I checked in my storyboard and the custom class is still listed & linked to the view controller display. I didn't change the class name in each locale - it's still the same.
what gives here?
thanks
i experimented this kind of problem in my project and my problem was my viewcontrollers .m file was not included in the compile sources in Build Phases->Compile Sources i manually add it to the Compile Sources and problem solved for me.
i hope it will help you.
Is there any open source codes achieve the viewController switching animation as appears in Path.app? Thanks in advance!
Here are a bunch of different ones for you to check out - http://bitly.com/bundles/o_27ukkruo5l/1
I've used JASidePanel recently and it worked well. Hope that helps.
I have a simple question, I have add in my project the AdMob's SDK with all the header and the "libGoogleAdMobAds.a" and I want to know if it's possible to have access to this file to change some line of code.
You have to create the GADBannerView in the code.
If you try to use an UIView on Interface Builder and choose GADBannerView as the class of the object, the class wont link and you get that error.
excuse me to create again this question, but I have another problem. I'm trying to integrate the aurioTouch Apple sample in my app. I have put all the code that was in aurioTouchAppDelegate in my app delegate file. The code runs, but some methods, like methods in EAGView file doesn't run, I don't know whym they are not called.
Some help or hints are welcome...
Have you integrate all the setting from Project's Build Settings. Actually I had the same issue but then I compare all the settings from Build Settings and found that some of the Linker flags were creating the problem and then was able to solve the problem. So whenever you have such problems try to go to Project's Build setting and compare all the keys. Mostly the Linker flags creates the problem in such cases.... hope this help to others also...
EDIT
After referring to your project. Notice that you have overloaded the property view of ViewController with your custom View EAGLView. You have not separated customView and ViewController's view.
Also, one major thing is you have to Initialize your EAGLView and add it to your ViewController's view. and rest of the things will go on in EAGLView.