• This repository has been archived on 08/May/2020
  • Stars
    star
    341
  • Rank 123,998 (Top 3 %)
  • Language
    Objective-C
  • Created about 14 years ago
  • Updated about 13 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

DEPRECATED, this isn't supported anymore. A two-dimensional scrolling view component for the iPhone, heavily inspired by UITableView.

DTGridView

A two-dimensional scrolling view component for the iPhone, heavily inspired by UITableView.

WARNING DTGridView 1.1 moves the location of all of the classes, so you may need to jiggle things about when updating.

Branch Structure

There are two branches to this repository, master and production, these are described below. (Thanks to Abizer for showing me this method.)

The master Branch

The master branch contains the class extension files as well as an Xcode project that demonstrates the code and is the branch to use to see how to use the code. It as also the branch that further development of the code should be performed on.

The production Branch

The production branch should be used if you want to add these extensions as a git submodule in other projects and will only contain the class files themselves without the Xcode project or example classes. This is preferable as it will keep your directories clean of any code which is unnecessary to your working project, of course you can switch branches in the submodule to access the given samples.

Changes made to the master branch will be merged across to production, so it will always remain current with respect to master.

To add the production branch rather than master, simply use the -b flag as shown below.

git submodule add -b production git://github.com/danielctull/DTGridView.git

To keep up to date with the latest changes `cd` into the directory that contains this submodule and pull the newest changes as usual

git pull origin

Artefacts

Sometimes, there may be artefacts left over when switching from master to production. These are files that are ignored by git and are easily cleaned up by running

git clean -dxf

Examples

Examples of some of these features can be found in the iPhone app delegate.

License

Copyright Β© 2010 Daniel Tull. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  • Neither the name of the author nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS β€œAS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

More Repositories

1

DCTCoreDataStack

Easily sets up a read to use core data stack
Objective-C
72
star
2

DCTCoreData

My additions to Core Data.
Objective-C
57
star
3

DTResurrectionKit

A small cocoa framework for resurrecting an object graph, specifically designed with a view controller structure on the iPhone.
Objective-C
32
star
4

DataCenter

Some view controllers to browse any random core data model's data.
Objective-C
31
star
5

DCTUIKit

My additions to UIKit.
Objective-C
30
star
6

DCTConfirmationButton

iOS 7 App Store-like button.
Objective-C
30
star
7

DCTAuth

A library to handle authorised web requests using an account-based approach similar to the Accounts framework. Comes with OAuth, OAuth 2.0 and basic authentication accounts.
Objective-C
30
star
8

DCTConnectionController

DEPRECATED: I'm now using AFNetworking like the rest of the world
Objective-C
25
star
9

DCTDataSource

A system to better manage UITableView data source classes, because they can be reusable too!
Objective-C
21
star
10

DCTMusicModel

A Core Data based framework for quickly accessing the music information in MediaPlayer. It requires the data to be imported, which takes about 1 minute 45 seconds for 2000 songs on an iPhone 3G. Once created, accessing is near instant. No private Apple APIs were used in the making of DCTMusicModel.
Objective-C
20
star
11

DCTTextFieldValidator

An object to validate many UITextFields
Objective-C
20
star
12

DCTAsynchronousTesting

Because I can't use Xcode 6 just yet, but still want to do asynchronous testing, I have recreated Apple's testing additions so that it will be easier to adopt when I can use Xcode 6.
Objective-C
16
star
13

DCTFoundation

My extensions to Apple's Foundation framework.
Objective-C
14
star
14

DCTImageCache

Caches images both on disk and in memory
Objective-C
12
star
15

Export-LSR

A Sketch plugin for exporting LSR files used for Apple TV parallax icons.
11
star
16

Remember-Forget

Bringing memory-management back to the modern ARC environment!
Objective-C
11
star
17

DCTGoogleMaps

Currently in development project to allow access to the Google Maps API
Objective-C
10
star
18

Advent-of-Code

My solutions to the Advent of Code puzzles.
Swift
8
star
19

DCTFetchedResultsSearchController

A controller to handle the fetching and display of managed objects in a UISearchDisplayController
Objective-C
8
star
20

openssl-xcode

Builds the OpenSSL libraries for use as an embeddable Xcode project, based on https://github.com/sqlcipher/openssl-xcode
Perl
8
star
21

PublisherView

A SwiftUI view that subscribes to a Combine publisher to display different views for the values and failure of the publisher.
Swift
7
star
22

Xcode-Configurations

A set of configuration files to use in my libraries and apps.
Shell
7
star
23

Resourceful

A resource type allow network requests to be packaged together with a transform to get some data.
Swift
6
star
24

DCTStoryboarding

Additions to make iOS 5's storyboarding a little better
Objective-C
6
star
25

DCTSafariActivity

An activity to "Open in Safari"
Objective-C
5
star
26

MarkdownKit

A wrapper for cmark providing an Abstract Syntax Tree for Markdown files in a natural Swift API.
Swift
5
star
27

swift-git

Swift
5
star
28

DCTBetterDescription

A set of categories to improve rubbish Cocoa class descriptions.
Objective-C
5
star
29

KeychainItem

Swift
4
star
30

AsyncView

A SwiftUI view that performs an async task on appearing, allowing the caller to display different views for the success and failure cases.
Swift
4
star
31

DCTWebBrowser

A view controller to act as an internal web browser.
Objective-C
4
star
32

UserDefaultsKey

A swift package to specify a Key type for use with UserDefaults.
Swift
4
star
33

DCTKit

Project to test compatibility with the latest versions of my libraries. Use the individual projects rather than this one.
Objective-C
4
star
34

DCTChromeActivity

An activity to "Open in Chrome"
Objective-C
4
star
35

FileBuilder

A declarative way to generate files using Swift.
Swift
4
star
36

DCTGravatar

Implementation of the Gravatar API with connection controllers
Objective-C
3
star
37

DCTManagedObjectSerialization

Objective-C
3
star
38

DCTConnectionController-UIKit

UIKit additions to DCTConnectionController
Objective-C
3
star
39

Sandvox-Gist

Gist plug-in for Sandvox
Objective-C
3
star
40

DCTYouTubeView

A view for iOS to load a YouTube video
Objective-C
3
star
41

git-template

My custom git template when initialising new git repositories.
Shell
3
star
42

DCTLimitedFetchedResultsController

A fetched results controller that limits the number of fetched objects.
Objective-C
3
star
43

dotfiles

My dotfiles, just want to see if this will help keep my machines in check.
Shell
3
star
44

DTNibHook

THIS IS DEPRECATED, see https://github.com/danielctull/DCTTableViewDataSources for my new table cell handling. A NibHook loads a view from a nib linking the outlet properties as usual. It then reassigns the tag for those views to the position of the property name when ordered. This allows another instance to hook that view to those same properties. Useful when reusing UITableViewCells, without having to create code especially for the cells.
Objective-C
3
star
45

JSONSchema

Swift implementation of json schema.
Swift
2
star
46

DCTPlaceholderTextView

A text view subclass with the ability to display placeholder text, uses ARC.
Objective-C
2
star
47

DCTRemoteSettings

Provides asynchronous access to key/values from a dictionary loaded from a URL, stored in the form of json or plist.
Objective-C
2
star
48

AppleScripts

A collection of AppleScripts taken from my Script directory.
2
star
49

DCTValueTransformers

Objective-C
2
star
50

Deserializer

Swift
2
star
51

to

My short URLs
2
star
52

DCTNetworkActivityIndicatorController

Class to controller the network activity indicator, works with DCTConnectionControllers
Objective-C
2
star
53

presentations

Presentations I have given
HTML
2
star
54

SampleCoreData

A sample Core Data Model, with model objects and a sample sqlite database.
Objective-C
2
star
55

DCTInstapaper

Example of how to use connection controllers with Instapaper's basic API
Objective-C
2
star
56

DCTFoursquare

Initial workings of the foursquare API with DCTConnectionController + co
Objective-C
2
star
57

DCTLogViewController

A view controller that you can log out to
Objective-C
1
star
58

site.includes

Jekyll includes for my sites
1
star
59

DCTBarViewController

A class to use as a parent view controller with a bar.
Objective-C
1
star
60

DCTImageSizing

Resize UIImages using any UIViewContentMode
Objective-C
1
star
61

site.style

The styles for my website
1
star
62

DCTObjectStore

A class to store groups of objects
Objective-C
1
star
63

RomanNumerals

A swift package for dealing with Roman numerals.
Swift
1
star
64

site.layouts

Jekyll layouts for my website
1
star
65

DCTKKGridViewDataSources

A port of FRCTableViewDataSources for KKGridView -- WARNING: Hugely untested!
Objective-C
1
star
66

Thinking-in-SwiftUI

My solutions to the problems posed in the book.
Swift
1
star
67

Xcode-UserData

My Xcode UserData folder
1
star
68

danielctull.github.com

My website
HTML
1
star
69

SampleViewControllers

Some sample view controllers to test with.
Objective-C
1
star
70

DCTMenuController

Category on UIMenuController to add a delegate callback.
Objective-C
1
star
71

lox

A swift implementation of the first lox interpreter described in the book Crafting Interpreters.
Swift
1
star
72

Geodesy

An iOS library for doing conversions of real-world coordinate systems.
Swift
1
star
73

DCTBlocks

Adding blocks to things that don't have blocks
Objective-C
1
star
74

Xcode-Scripts

A set of scripts to use in my libraries and apps.
Perl
1
star
75

SlideUI

Create polished presentations with the power of SwiftUI.
Swift
1
star