Skip to content

Instantly share code, notes, and snippets.

View vanbungkring's full-sized avatar
🐴
Monkey coder

Arie vanbungkring

🐴
Monkey coder
View GitHub Profile
var menu = require('lib/menu');
Ti.App.addEventListener('addAirplaneToTable', function(e) {
closeOpen()
})
var winmenu = new menu();
winmenu.open();
var menuOpen = false;
@vanbungkring
vanbungkring / gist:3863732
Created October 10, 2012 07:29 — forked from robin/gist:62684
round corner uiimage
#import "ImageManipulator.h"
@implementation ImageManipulator
static void addRoundedRectToPath(CGContextRef context, CGRect rect, float ovalWidth, float ovalHeight)
{
float fw, fh;
if (ovalWidth == 0 || ovalHeight == 0) {
CGContextAddRect(context, rect);
return;
@vanbungkring
vanbungkring / KGModal.m
Created October 31, 2012 10:52
UIviewController
//
// KGModal.m
// KGModal
//
// Created by David Keegan on 10/5/12.
// Copyright (c) 2012 David Keegan. All rights reserved.
//
#import "KGModal.h"
#import <QuartzCore/QuartzCore.h>
//Draw the shadow for center component
CGContextSetFillColorWithColor( ctx, [UIColor colorWithWhite:.1 alpha:.4].CGColor );
CGContextFillEllipseInRect( ctx, CGRectInset(self.bounds, CENTER_INSET-4, CENTER_INSET-4) );
//Draw center transparent mask
CGContextSetFillColorWithColor( ctx, [UIColor clearColor].CGColor );
CGContextSetBlendMode(ctx, kCGBlendModeClear);
CGContextFillEllipseInRect( ctx, CGRectInset(self.bounds, CENTER_INSET, CENTER_INSET) );
@vanbungkring
vanbungkring / NetraSearchBox.m
Created November 10, 2012 07:07
NetraSearchbox
//
// NetraSearchBox.m
// Trip
//
// Created by Arie on 11/2/12.
#import "NetraSearchBox.h"
#import <QuartzCore/QuartzCore.h>
@vanbungkring
vanbungkring / min.m
Created November 11, 2012 10:22
mini
//
// TSMiniWebBrowser.m
// TSMiniWebBrowserDemo
//
// Created by Toni Sala Echaurren on 18/01/12.
// Copyright 2012 Toni Sala. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
//.. do other setup
CGFloat screenHeight = [UIScreen mainScreen].bounds.size.height;
// Transition neatly from splash screen
// Very odd, on iPhone 5 you need to position the splash screen differently..
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Put necessary initialization steps here...
// Add imageView overlay with fade out and zoom in animation
UIImageView *imageView = [[UIImageView alloc] initWithFrame:self.window.frame];
imageView.image = [UIImage imageNamed:@"Default"]; // assuming your splash image is "Default.png" or "Default@2x.png"
[self.window addSubview:imageView];
[self.window bringSubviewToFront:imageView];
[UIView transitionWithView:self.window

Question

How to implement a UITableView with a separator line like this:

doubly separator line

Usually, you can only set the separatorLine property of a UITableView with to single line or single line etched. Sometimes, it is not enough. So, how to implement a separator line like this?

Answer

@dynamic albumId;
@dynamic albumName;
@dynamic artistId;
@dynamic artistName;
@dynamic downId;
@dynamic finished;
@dynamic genreId;
@dynamic genreName;
@dynamic hitSongYN;
@dynamic playTime;