Skip to content

Instantly share code, notes, and snippets.


lzwujun wujun

View GitHub Profile
wujun / MKNumberBadgeView.h
Created Feb 21, 2012
custom badge from Michael F. Kamprath
View MKNumberBadgeView.h
// MKNumberBadgeView.h
// Copyright 2009 Michael F. Kamprath
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
wujun / hello xml
Created Feb 19, 2012
parser xml file
View hello xml
- (void)parseData
//self.importCardArray = [NSMutableArray arrayWithCapacity:10];
[self.xmlParser setDelegate:self];
self.statusLabel.text= @"Storing the cards to the database...";
BOOL xmlParsingOK = [self.xmlParser parse];
if (xmlParsingOK) {
self.statusLabel.text= @"All entry successfully imported.";