Comments (24)
Hey Martin,
cool. Im not into hacking the core, but im sure i can make my module listen to willRotateToInterfaceOrientation. That should not be the biggest challenge. when im extending TiWindow, this should be possible.
We should make this module together. To my experience, people are much more likely to use you contributions if it is a module rather than SDK hacks, due to the complexity and the rapid releases from appcelerator.
I would love to take a look at your code. if not a repo on github, then send me a copy me mail?
Please do a PR with your code.
Mads
from nappslidemenu.
Actually i dont think you will easily add it as a module. I had to modify TiRootViewController.m to add missing Code. You are missing code there
https://github.com/appcelerator/titanium_mobile/blob/master/iphone/Classes/TiRootViewController.m#L603
If you manage to have willRotateToInterfaceOrientation i will send you all my code so that you can merge.
I cant create a pullrequest as i am working in my private titanium_mobile branch. But as soon as i have something i m ok with (which could be this we seeing how fast it goes), i will push it to my github branch and will let you know.
I am not doing it as SDK hack, as soon as it is working i will create a pullRequest to get it included in the official release.
By the way, just managed to have any view used as left or right side. Doesnt need to be a window anymore. Makes a lot more sense
from nappslidemenu.
Hi
good stuff!
can you send me you changed in tirootcontroller.. Then I'll show you what I mean.
from nappslidemenu.
Suer here you go
- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration;
{
windowOrientation = toInterfaceOrientation;
[super willRotateToInterfaceOrientation:toInterfaceOrientation duration:duration];
for (TiWindowProxy * thisProxy in windowProxies)
{
UIViewController * thisNavCon = [thisProxy navController];
if (thisNavCon == nil)
{
thisNavCon = [thisProxy controller];
}
[thisNavCon willRotateToInterfaceOrientation:toInterfaceOrientation duration:duration];
}
}
- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation;
{
[super didRotateFromInterfaceOrientation:fromInterfaceOrientation];
for (TiWindowProxy * thisProxy in windowProxies)
{
UIViewController * thisNavCon = [thisProxy navController];
if (thisNavCon == nil)
{
thisNavCon = [thisProxy controller];
}
[thisNavCon didRotateFromInterfaceOrientation:fromInterfaceOrientation];
}
}
from nappslidemenu.
Hi Martin,
There you go:
https://github.com/viezel/NappSlideMenu/blob/master/Classes/Ti/TiRootViewController%2BExtended.m
Now we have these two methods in the module.
from nappslidemenu.
swizzle of course ;)
great job
from nappslidemenu.
hi,
looking forward to see your code. it will be cool to have any kind of views in the side views :)
you said that you are working on a android version as well. Seems like a bunch of work?
Send me some code to look at, if you want any help..
Mads
from nappslidemenu.
Android version is now finished. iOS version almost done. In fact the hardest part is to find a working "cross-plateform" API. This widget is really "new" so both android and ios version get quite different.
Will make a pull request as soon as possible
from nappslidemenu.
Just so you know, ViewDeck is still very buggy. I ll need to fix it before i can release anything
from nappslidemenu.
sounds great. Im looking forward to the PR, and ill play with it. Yeah ViewDeck has its flaws, but nice UI result in the end. :)
from nappslidemenu.
Yes but i am actually looking at alternatives. May be https://github.com/edgecase/ECSlidingViewController
from nappslidemenu.
yeah, but its quite basic. I like the api of setting ledge, animationmode and the ability to push a new navcontroller. :)
what bugs are you finding in the viewdeck?
from nappslidemenu.
I updated the module with proper TiWindow proxy resize.
So the module should work fine now.
from nappslidemenu.
Ok so i think i finished my slidingMenu integration into Titanium.
For the ios part, i decided not to use ViewDeck, instead i used my own version of https://github.com/edgecase/ECSlidingViewController
https://github.com/Akylas/ECSlidingViewController
You can look at the code. Now as for the SlideMenu widget for ios i cant really make it public as it relies on my own private branch of titanium which too far away from the main branch
Here is the code (did not include the headers)
https://gist.github.com/farfromrefug/719541c9b51ce1b5ae2e
https://gist.github.com/farfromrefug/5363ca878dc32a619d93
For the android version i used https://github.com/jfeinstein10/SlidingMenu. It s also my own modified version.
It has the exact same features as the ios part except for one thing. Using windows in the android version seems impossible, so only work with views
from nappslidemenu.
Martin,
This is great stuff.. I had a look into the android version. nicely done.
I can try to explain which part of the code that has dependencies to your modified SDK version? I want to see whats not possible with the current androdi SDK. We either might be able to create some smart moves in the module, or do PR to the timobile master branch.
regarding your views vs. windows: I believe you are complete right. Its really hard to extend windows on android.
// Mads
from nappslidemenu.
About my private branch, on android i could easily create a PR. It s on the ios side that i rewrote a lot of things. I completely rewrote the proxy/view creation system of Ti. It s now working as on android, the view is only created when necessary. That way i have a Titanium SDK with crazily smaller footprint, and most of all it allowed me to completely rewrote the tableview widget to use reuse of cell ....
from nappslidemenu.
Do PR! and start a dialog with them. If you optimize their work, they cannot argue that! :)
They love contributors!
If you wanna keep code private, you could email me the android version? I would like to try to write this module aswell! its [email protected]
from nappslidemenu.
Any updates here? Would be nice have a Android version of this module.
Thanks!
from nappslidemenu.
I have it working perfectly, but not as a module. It's integrated in my own private branch of the sdk.
I will make a pull request when i can (right now my branch to far away from the master branch)
from nappslidemenu.
Hi Martin,
could a have a look at your files?
from nappslidemenu.
watch your mails ;)
from nappslidemenu.
Hi viezel,
Your module is the best one I have found so far!
Any plans to support Android in the near future ?
After review of a couple of sliders under android I think the SlidingMenu from jfeinstein10 is the most fluid.
https://github.com/jfeinstein10/SlidingMenu
How hard would it be to include it into your dk.napp.slidemenu module? Would it be even possible? I have no experience when it comes to creating modules, I looked at the doc but am kinda lost...
Thanks for the help.
Chris
from nappslidemenu.
Chris,
I already did this. Look at my repo: NappDrawer
MED VENLIG HILSEN / BEST REGARDS
MADS MØLLER
TECHNICAL PARTNER
Napp CMS ApS
T: 42 42 80 60
M: 20 28 20 26
E: [email protected]:[email protected]
W: www.napp.dkhttp://www.napp.dk
On 10/10/2013, at 15.19, "chrisribe" <[email protected]mailto:[email protected]> wrote:
Hi viezel,
Your module is the best one I have found so far!
Any plans to support Android in the near future ?
After review of a couple of sliders under android I think the SlidingMenu from jfeinstein10 is the most fluid.
https://github.com/jfeinstein10/SlidingMenu
How hard would it be to include it into your dk.napp.slidemenu module? Would it be even possible? I have no experience when it comes to creating modules, I looked at the doc but am kinda lost...
Thanks for the help.
Chris
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-26052580.
from nappslidemenu.
Viezel,
Wow fast response, thanks!
Sorry did not see that in your repo....
Looking at it right now !
Thanks again.
Chris
On Thu, Oct 10, 2013 at 9:37 AM, Mads Møller [email protected]:
Chris,
I already did this. Look at my repo: NappDrawerMED VENLIG HILSEN / BEST REGARDS
MADS MØLLER
TECHNICAL PARTNERNapp CMS ApS
T: 42 42 80 60
M: 20 28 20 26
E: [email protected]:[email protected]
W: www.napp.dkhttp://www.napp.dk
On 10/10/2013, at 15.19, "chrisribe" <[email protected]<mailto:
[email protected]>> wrote:Hi viezel,
Your module is the best one I have found so far!
Any plans to support Android in the near future ?
After review of a couple of sliders under android I think the SlidingMenu
from jfeinstein10 is the most fluid.
https://github.com/jfeinstein10/SlidingMenuHow hard would it be to include it into your dk.napp.slidemenu module?
Would it be even possible? I have no experience when it comes to creating
modules, I looked at the doc but am kinda lost...Thanks for the help.
Chris—
Reply to this email directly or view it on GitHub<
https://github.com/viezel/NappSlideMenu/issues/1#issuecomment-26052580>.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-26054023
.
from nappslidemenu.
Related Issues (20)
- event viewWillOpen fired but not cancelable HOT 2
- Is it possible to deactivate swip but only for one panel ? HOT 1
- SlideMenu does not work with new Titanium.UI.iOS.NavigationWindow
- ScrollView in centerWindow / scroll to top by clicking the statusbar HOT 1
- NavBarHidden on the SlideMenuWindow HOT 1
- Is there a way to remove the shadow? HOT 2
- focus event on NavigationWindow windwos (with examples) HOT 4
- Accessibility Issues HOT 3
- How do i use this library in tabgroup application? HOT 1
- Crash when closing main window object
- StatusBarStyle change when open modal window HOT 1
- Support for 64bit?
- Setting Left Menu width HOT 1
- Interference with TableView.moving property? HOT 2
- NappSlideMenu.STATUSBAR_WHITE does not work with SDK 3.5.x HOT 1
- Menu disappearing on Ti SDK 4.1
- Transition effect "move/zoom main window"
- setCenterhiddenInteractivity is ignored, TouchEnabled is always true
- iPAD support
- iPhone X window homeIndicatorAutoHidden
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nappslidemenu.