Git Product home page Git Product logo

jwfolders's People

Contributors

eoghain avatar jwilling avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jwfolders's Issues

Error building

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

Poor Quality in content view

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.

Version tag

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,

JWDemo not compiling

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]

  • error: receiver type 'JWFolderSplitView' for instance message does not declare a method with selector 'createHighlightWithFrame:' [4]

UIView+Screenshot category used in this library does not work with CALayer masks

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

folder bug when click cell quickly

I have a table ,and I want to open splice when I click the cell.
But , when I click the below cell, then double-click the above cell quickly,this kind of situation will appear。
23f75d40-068d-4863-8439-cfc479dd02e5

Or my app can be clicked never.
Do you have any idea?Thank you.

UIScrollView Issue

If the folder is a subview of UIScrollView, it has a bizarre effect. I mean if the container view is a UIScrollView.

Usage in UICollectionView

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

See screenshot.
Screen Shot 2013-02-09 at 01 57 17

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?

Issue with screenshot( taking a long time) in iPad3

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.

Call close method from other class (asynchronous and synchonous)

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.

Notch is at left side of the screen, not on the centre.

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.

Change Parent Value

Hi ... please... can you help me ???

captura de tela 2014-02-27 as 17 21 17

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.

Close a folder

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?

'-[JWFolders setDirection:]: exception

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?

Grid view last row last image problem

Hi, I created 17 image view (4X4) in scroll view. when i tap the 17th image in last row image getting disturb. please see the attached image. Can you please give me the soloing.
ios simulator screen shot 28 mar 2014 11 21 33

Move away from using static variables.

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.