jwilling / jwfolders Goto Github PK
View Code? Open in Web Editor NEWImplementation of iOS 6's folders.
Implementation of iOS 6's folders.
Hi! Great work with the folder animation man! I want to implement it on one projecto of mine. I import your folder, and on the view controller I import the header file. But i get this error, when building:
Undefined symbols for architecture i386:
"OBJC_CLASS$_JWFolders", referenced from:
objc-class-ref in younifyTableViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Can you help me please? I'm trying to make this effect on a table view. When I click on a cell, it opens the folder. Is it possible?
TKS A LOT!
PS: I'm a noob just starting and comming drom Javascript and AS :)
I´ve seen there´s a quality problem in content view.
Adding:
view.layer.rasterizationScale = 0.45;
in JWFolders.m class after shouldRasterize fix this problem.
Hi,
Could you add a version tag of JWFolders?
I would like to create a podspec to this library in CocoaPods and I need a version tag to reference a version.
Thanks,
With ARC enabled the project does not even compile.
*error:receiver type 'JWFolders' for instance message does not declare a method with selector 'openFolderWithContentView:position:containerView:openBlock:closeBlock:completionBlock:direction:' [4]
error: receiver type 'JWFolders' for instance message does not declare a method with selector 'openFolderWithContentView:position:containerView:openBlock:closeBlock:completionBlock:direction:' [4]
I have a view that I applied a mask for the CALayer for a view.
https://developer.apple.com/library/ios/#documentation/graphicsimaging/reference/CALayer_class/Introduction/Introduction.html#//apple_ref/occ/instp/CALayer/mask
And JWFolders uses
If the folder is a subview of UIScrollView, it has a bizarre effect. I mean if the container view is a UIScrollView.
I have a collection view with several dozens of cells, similar to the iOS Photos app. When tapping a cell, I scroll it to the top of the screen and open a folder with the notch pointing to its center.
This works fine for the first few rows of cells, but the farther I get down, the worse the effect becomes. For once, the animation gets "lost". And also, there is a rendering issue with the background of the content view being repeated over the whole width of the "notch bar".
I assume there might be something wrong with the coordinate calculations the farther I get down the collection view. Is there anything I can do about this?
Hi,
I have a grid view with lot of high graphic images where we can create folders. When opening folder we are using the jwfolder class. The code to take screenshot is taking too way long on ipad3. its working fine on the ipad 2. Let me know if you have better solution for taking a screensot. Thanks in advance.
Hello,
I've added on my local JWFolders source this :
JWFolders.h
/* Folder is opened or not */
@property (nonatomic, assign) BOOL isOpened;
- (void)performClose:(id)sender;
I set isOpened var properly in methods
- (void)openFolderWithContentView:(UIView *)contentView
position:(CGPoint)position
containerView:(UIView *)containerView
openBlock:(JWFoldersOpenBlock)openBlock
closeBlock:(JWFoldersCloseBlock)closeBlock
completionBlock:(JWFoldersCompletionBlock)completionBlock
direction:(JWFoldersOpenDirection)direction;
and
- (void)performClose:(id)sender;
That way I can ask my folder to close on iPad rotation if needed.
Problem is that It is only asynchronous and and screenshots still there during rotation. it makes rotation animation all messy with objects moves.
It would be great if there will be a way to close completely the JWFolders before rotation animation.
Anyway, thank you for this great project.
I tried your demo with those settings:
JWFolders *folder = [JWFolders folder];
folder.contentView = self.sampleFolder.view;
folder.containerView = self.view;
folder.position = openPoint;
folder.direction = JWFoldersOpenDirectionDown;
folder.contentBackgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"noise"]];
folder.shadowsEnabled = YES;
folder.darkensBackground = NO;
folder.showsNotch = YES;
[folder open];
Screenshot: http://d.pr/i/NwgQ
However, I use Xcode4.5 DP4, so maybe this is the problem.
Hi ... please... can you help me ???
I am trying to change the Button title in the main View.... but i can`t do it...
in JWFolder View ... i am trying to do it:
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
//Parent View where is my button.
FinalizarAtendimentoViewController *parent = [[FinalizarAtendimentoViewController alloc] init];
//my button outlet on parentView
[parent.outBtnSelecionarProblema setTitle:@"TEST2" forState: UIControlStateNormal];
}
But it is not working... can you help me ?? please...
Tks.
I need a little help for JWFolder, I'm a bit late with delivery times :D
I open a folder from main firstViewController:
-(void)showFiltroView:(id)sender{
CGPoint openPoint = CGPointMake((userInfoView.frame.origin.x + [sender frame].origin.x + [sender frame].size.width/2), [sender frame].origin.y + 68);
JWFolders *folderFiltro = [JWFolders alloc];
folderFiltro.contentView = self.filtroView.view;
folderFiltro.containerView = self.view;
folderFiltro.position = openPoint;
folderFiltro.direction = JWFoldersOpenDirectionDown;
folderFiltro.contentBackgroundColor = [UIColor colorWithRed:0.20 green:0.32 blue:0.42 alpha:1];
folderFiltro.shadowsEnabled = YES;
folderFiltro.showsNotch = NO;
[folderFiltro open]; // opens the folder.
}
After I would close this folder from an uibutton in the folderView.
but this code obviously doesn't work:
JWFolders *folderFiltro = [JWFolders alloc];
[folderFiltro closeCurrentFolder];
because folderFiltro is a new instance of JWFolder.
How can I close the folder?
When running the app in the simulator, the following exception is encountered on clicking any of the Open Folder Up/Down buttons.
"*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[JWFolders setDirection:]: unrecognized selector sent to instance 0x6b33cc0'". How do i get around this?
instead of vertically downwards.
How can i do this.
Thanks
Abhi
As shown here, [UIColor colorWithPatternImage:]
is terrible with memory management.
This will be replaced with image views in a future update.
JWFolders
currently is a NSObject
subclass, and it uses static variables to maintain references to the views.
This should be avoided. Perhaps I should make the implementation similar to a UIAlertView
, where it is a subclass of UIView
.
Then, perhaps, using it would look something like this:
JWFolder *folder = [JWFolder folderWithView:view position:position containerView:container delegate:self]; [folder setCompletionBlock:^{ //something }]; [folder open];
In other words, the sender would only be responsible for showing the folders. The rest would be handled by JWFolders
. Current implementation puts too much responsibility upon the sender to remove the view.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.