All Projects → PayalUmraliya → HorizontalTimesLayout

PayalUmraliya / HorizontalTimesLayout

Licence: MIT license
Layout to display time slots in horizontal 24 hour format

Programming Languages

objective c
16641 projects - #2 most used programming language
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to HorizontalTimesLayout

Kotlin Agendacalendarview
Android calendar library provides easy to use widget with events
Stars: ✭ 81 (+161.29%)
Mutual labels:  event, calendar-view
kalend
React calendar component with support for multiple views and events
Stars: ✭ 135 (+335.48%)
Mutual labels:  calendar-view, calendar-events
Uicollectionviewsplitlayout
UICollectionViewSplitLayout makes collection view more responsive.
Stars: ✭ 226 (+629.03%)
Mutual labels:  layout, iphone
EventCalender
This event setter library. You can set any event in any date and also you can modify it
Stars: ✭ 23 (-25.81%)
Mutual labels:  calendar-view, calendar-events
Layou-For-All-iPhone
针对于iPhone全机型,对比iPhone6的适配方案
Stars: ✭ 13 (-58.06%)
Mutual labels:  layout, iphone
Autoinch
优雅的iPhone全尺寸/等比例精准适配工具
Stars: ✭ 395 (+1174.19%)
Mutual labels:  layout, iphone
Swift-ISO8601-DurationParser
Swift ISO8601 Parser
Stars: ✭ 24 (-22.58%)
Mutual labels:  time, iphone
perfy
A simple, light-weight NodeJS utility for measuring code execution in high-resolution real times.
Stars: ✭ 54 (+74.19%)
Mutual labels:  time
ngx-mat-timepicker
A true material timepicker
Stars: ✭ 45 (+45.16%)
Mutual labels:  time
jodaTime
Format and Parse date and time with joda layout
Stars: ✭ 67 (+116.13%)
Mutual labels:  time
SwiftyJot
Use your finger to annotate images.
Stars: ✭ 14 (-54.84%)
Mutual labels:  iphone
ardusamber
Desamber time Arduino corporealization
Stars: ✭ 20 (-35.48%)
Mutual labels:  time
AppLibraryController
App Library Controller - Control App Library
Stars: ✭ 14 (-54.84%)
Mutual labels:  iphone
Shukofukurou-iOS
The Ultimate Open Source AniList, Kitsu, and MyAnimeList Tracker for iOS/iPadOS written in Objective-C
Stars: ✭ 29 (-6.45%)
Mutual labels:  iphone
gostrftime
strftime for Go
Stars: ✭ 21 (-32.26%)
Mutual labels:  time
iso8601
A fast ISO8601 date parser for Go
Stars: ✭ 122 (+293.55%)
Mutual labels:  time
evon
Fast and versatile event dispatcher code generator for Golang
Stars: ✭ 15 (-51.61%)
Mutual labels:  event
form-bunch
Form-bunch is a component like plugin that make it easier to write form, you could add the most of components what you want to form-bunch for build various form.
Stars: ✭ 18 (-41.94%)
Mutual labels:  layout
lit-date
Light-weight, faster datetime formatter for modern browsers.
Stars: ✭ 33 (+6.45%)
Mutual labels:  time
easyappointments-integrations
📅 Various platform integration packages of Easy!Appointments
Stars: ✭ 29 (-6.45%)
Mutual labels:  time

HorizontalTimesLayout

License

SWIFT VERSION FOR THIS PROJECT - https://github.com/PayalUmraliya/HorizontalTimesLayout-Swift

TO DISPLAY TIME SLOTS IN 24 HOUR FORMAT

PROJECT CONTAINS IDEA TO DEVELOP A CALENDAR TYPE LAYOUT USING TABLEVIEW IN WHICH IF REQUIREMENTS ARE TO SHOW TIME IN HORIZONTAL LAYOUT AND EVENTS IN VERTICAL LAYOUT.

PROJECT EXAMPLE SHOWING LIST OF RESOURCES USAGE IN 24 HOUR FORMAT.

Sample project output

LICENSE

The MIT License

USAGE
-(void)prepareStatusDic
{
    NSArray *arr=[NSArray arrayWithObjects:@"1:40",@"2:40",@"DJ-IL",@"1",nil];
    NSArray *arr1=[NSArray arrayWithObjects:@"4:00",@"7:20",@"PJ-IL", @"2",nil];
    NSArray *arr2=[NSArray arrayWithObjects:@"3:55",@"12:30",@"PR-IL",@"3", nil];
    NSArray *arr3=[NSArray arrayWithObjects:@"17:10",@"23:00",@"PU-IL",@"4", nil];
    someDictionary = @{@"0" : arr,@"2" : arr1,@"3" : arr2,@"4" : arr3};
}

Above method will add event with different color in cell

NSArray *arr=[NSArray arrayWithObjects:@"1:40",@"2:40",@"DJ-IL",@"1",nil];
Array Element
  • 1 - start time
  • 2 - End time
  • 3 - Text to display on event
  • 4 - Color of event
Dictionary Element
someDictionary = @{@"0" : arr,@"2" : arr1,@"3" : arr2,@"4" : arr3};
  • Key - index of row at which you want to add event
  • value - event data
This display event call this method in collection view cell for row at index path delegate method
[hsc setUpCellWithArray:[someDictionary objectForKey:[NSString stringWithFormat:@"%ld",(long)cv.tag]]];
- (UICollectionViewCell *)collectionView:(UICollectionView *)cv cellForItemAtIndexPath:(NSIndexPath *)indexPath
{
        CellHorizontalScroll *hsc =[cv dequeueReusableCellWithReuseIdentifier:@"CellHorizontalScroll"
                                                                                 forIndexPath:indexPath];
        [hsc setBackgroundColor:[UIColor whiteColor]];
        [hsc setUpCellWithArray:[someDictionary objectForKey:[NSString stringWithFormat:@"%ld",(long)cv.tag]]];
        hsc.cellDelegate = self;
        [hsc.scroll setFrame:CGRectMake(hsc.scroll.frame.origin.x, hsc.scroll.frame.origin.y, hsc.frame.size.width, 70 )];
        hsc.scroll.contentOffset= CGPointMake(self.collEventTimeHeader.contentOffset.x,0.0);
        return hsc;
}

To manage event click event use below custom delegate method of calender cell
-(void)callSelected:(id)sender
{
  //Handle click event
}

To customize UI for event use below method
-(UIView *)createCustomView:(NSArray *)array
{
}

:)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].