boctor / idev-recipes Goto Github PK
View Code? Open in Web Editor NEWOpen source code for the idevrecipes.com blog
Home Page: http://idevrecipes.com
Open source code for the idevrecipes.com blog
Home Page: http://idevrecipes.com
When you touch and hold for a few seconds, then swipe to the right, the delete button shows up.
Your CustomSegmentedControl and CustomSegmentedControlsViewController are closely connected. So it takes a lot of time to recreate the first one as a separate control.
Why did you transfer a half of parameters from the first class to the second one? Such as offset, CapLocation.
Some extra parameters: TAG_VALUE
Why do you declare buttons as array of dictionaries of arrays and even make it static?
And finally WHY do you customise the buttons of your custom segmented control completely outside it? Ponder "custom segmenter control" meaning.
In iOS5 the custom tabbar background is centered and only 1/3 of the width it should bewith grey on each side
"full screen at launch" is checked if anyone wonder. but still i can't see tabbar. kindly help.
I'm have problem implementing it to my project with storyboard. Any tips?
Otherwise great example!
Hi Peter!
Thanks a lot for this excellent TabBar. I use it in my app Toeppersee.
But would you care to add @3x images for iPhone 6 Plus?
Regards,
Sebastian
i'm trying this using xcode 5 with sotryboard.. any idea why this is happening?
@Property (nonatomic, retain) NSMutableArray* buttons;
...
self.buttons = [[NSMutableArray alloc] initWithCapacity:segmentCount];
...
[buttons release];
WTF?
as title,thank you !
It would be nice if you could add an MIT or BSD style license for this code if you intend it to be open source.
I would like to use the VerticalSwipeArticle with a UITableViewController but for some reason it does not work. None of the delegates methods get called. I duplicated from the Sample Project.
Does the VerticalSwipeArticle require a UIViewControler as a base or am I doing something wrong?
Any help is appreciated.
Thank you.
Item 1 is easy enough. Per Apple docs:
Warning: If the view belonging to a view controller is added to a view hierarchy directly, the view controller will not receive (viewWill/DidAppear/Disappear). If you insert or add a view to the view hierarchy, and it has a view controller, you should send the associated view controller this message directly. Failing to send the view controller this message will prevent any associated animation from being displayed.
Alas, I'm running into some interesting dead-ends with Items 2 and 3. (Might just be pilot error.) Rather than hunting these down one by one as they crop up, I wonder if its desirable to subclass UITabBarController itself, but just draw it in the most excellent way you've done here? Pros/cons? (Con: Apple does not advise subclassing it!)
Screen: http://snapplr.com/2h2j
Hello @boctor:
I've found that when you start the CustomTabBar example the TabBarRow is slightly moved to the right, and
I've found a fix, maybe this can help you.
[Class] CustomTabBar
[method] - (void) addTabBarArrowAtIndex:(NSUInteger)itemIndex
Change:
tabBarArrow.frame = CGRectMake([self horizontalLocationFor:itemIndex], verticalLocation, tabBarArrowImage.size.width, tabBarArrowImage.size.height);
To:
tabBarArrow.frame = CGRectMake([self horizontalLocationFor:itemIndex] - 5, verticalLocation, tabBarArrowImage.size.width, tabBarArrowImage.size.height);
That's all.
Unable to run app.
I'm using VerticalSwipeArticles in my app,I use ARC thare but I receive the wrong animation! Any one can help me?
This may get resolved at the OS level but when I run the WoodUINavigation against the ios5 simulators the UIImageView is not displayed.
Hi!
Thanks you very much for this valuable contribution.
I have just created a version of this solution in Swift, you can take a look in this repository.
Thanks!
the call to UIGraphicsBeginImageContextWithOptions
in CustomSegmentedControlsViewController is not OS3.x friendly. It will crash because the call is a C call and not Obj C.
Here is a fix ( May not work well with non opaque images, but stops the crashing):
CGSize size = CGSizeMake(buttonWidth, image.size.height);
if (UIGraphicsBeginImageContextWithOptions!=NULL) {
UIGraphicsBeginImageContextWithOptions(size, NO, 0.0);
} else {
UIGraphicsBeginImageContext(size);
}
hello everyone, i am using the example where we have custom UINavigation background image :
[customNavigationBar setBackgroundWith:[UIImage imageNamed:@"navigationBarBackgroundRetro.png"]];
I have created a Uinavigation Bar project and imported the required files. i am getting the following error :
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UINavigationBar setBackgroundWith:]: unrecognized selector sent to instance.
Many thanks :)
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.