depicus

  just another nerd on the interweb…



  • home
  • gallery
  • play page
  • support
  • videos
  • what is depicus

Posts Tagged ‘iPad’

Kenya Dairy iPad app goes Open Source

Friday, July 1st, 2011



You can find the source code on Github and the Kenya Diary app itself is on iTunes

Tags: iPad, Kenya, Open Source, Safari
Posted in Apple, iOS, Software Development | No Comments »

Scrolling credits on iOS – how to create.

Thursday, June 16th, 2011



Ever wanted to have scrolling credits for your iOS device ? Here is how to do it…

Scrolling Credits from Brian Slack on Vimeo.

1. Take your existing photo and cut out a piece as high as your UIView and as wide as your text plus a little bit.
2. This new image will be our mask.
3. With the mask image cut out the centre so you have a rectangle top and bottom. Clone the layer and on the first layer delete the bottom rectangle, on the other layer delete the top rectangle
4. Add a layer mask to both.
5. With the layer mask selected add a black/white gradient (hold down the shift key to get a straight down gradient)
6. Your mask image is now done, add to your XCode project with the main image then the text and then the mask image on top.
7. To animate first reset the text so it’s always in the same starting position

View Code OBJC
1
2
3
4
lblCredits.transform = CGAffineTransformMakeTranslation(0, 0);     
CGRect frame = lblCredits.frame;
frame.origin.y = 550.0;
lblCredits.frame = frame;

8. Then just animate up

View Code OBJC
1
2
3
4
5
6
7
8
9
[UILabel beginAnimations:nil context:NULL];
[UILabel setAnimationDuration:30.0f];
[UILabel setAnimationCurve:UIViewAnimationCurveLinear];
[UILabel setAnimationBeginsFromCurrentState:YES];
[UILabel setAnimationDelegate:self];
[UILabel setAnimationDidStopSelector:@selector(creditsHaveEnded)];
CGAffineTransform transform = CGAffineTransformMakeTranslation(0, -1000);
lblCredits.transform = transform;
[UILabel commitAnimations];

9. That’s about it, dependant on how you use it you may need to cancel the animation but I’m sure you can work that out :)

Tags: animation, iPad, video
Posted in Apple, iOS, Software Development | 2 Comments »

XIB iPad orientation in landscape problem and solution

Wednesday, January 26th, 2011



If you want to show a secondary nib file you may have noticed that it shows fine in portrait mode but from startup not in landscape mode.

This is what I use to fix this. Seems like a fudge but it works, I call this after creating the view.

vSettings is a UIView and backGroundSettings is a UIImageView.

View Code OBJC
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
 
- (void) animateFlipInView:(NSString *)theNib;
{
    UIInterfaceOrientation toInterfaceOrientation = self.interfaceOrientation;
    NSArray *nibObjects = [[NSBundle mainBundle] loadNibNamed:theNib owner:self options:nil];
    vSettings = [nibObjects objectAtIndex:0];
    [self.view addSubview:vSettings];
    if (iPadCheck)
    {
        if ((toInterfaceOrientation == UIDeviceOrientationLandscapeLeft) || 
			(toInterfaceOrientation == UIDeviceOrientationLandscapeRight)) 
        {
            CGRect contentRect = CGRectMake(0,0,1024,768);
            vSettings.bounds = contentRect;
            CGRect myFrame = vSettings.frame;
            myFrame.origin.x = 0.0;
            myFrame.origin.y = 0.0;
            vSettings.frame = myFrame;
            UIImage *image;
			image = [UIImage imageNamed: @"Default-Landscape.png"];
            [backGroundSettings setImage:image];
		}
    }
    [UIView beginAnimations:nil context:NULL];
    [UIView setAnimationDuration:1.0];
    [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self.view cache:YES];
    [UIView commitAnimations];
}

Tags: Apple, Bug, iPad, NIB, XIB
Posted in Software Development | No Comments »

iPhone App Giveaway

Tuesday, December 14th, 2010



I have 7 codes to give away for my Wake On Lan iPhone App. First come first serve. Leave a comment and hopefully if you used the right email address I will email you a code.

Don’t forget to give us a review, good or bad, on the app store.

UPDATE: ALL GONE

Tags: Apple, Giveaway, iPad, iPhone, iPod Touch
Posted in Blogs, Interweb, Wake On Lan | 14 Comments »

WoL Monitor a hit ?

Saturday, December 4th, 2010



Well the numbers are in for the first two days. To say I am a bit shocked would be an understatement as it seems 199 people thought it was an app they needed. This is strange as my WoL sender app gets about 6 downloads a day and has been live a month, clocking up 239 downloads so far.

Looks like people want to monitor WoL more than they want to send WoL magic packets :)

Tags: iPad, iPhone, iPod Touch, Wake On Lan, Wake On Lan Monitor, WakeOnLan
Posted in Software Development, Wake On Lan | No Comments »

<< Previous

  • how i pay the bills

  • google rank getter

    Android Apache Aperture Apple App Store bbPress Bike Bug Canon 7D Code Dell DotNet Dropbox Fail Firefox forum Frustration Golf iPad iPhone iPod Touch Java Kenya Linksys Macbook Pro Netgear Objective C Open Source OSX PHP Rejected Safari Server Skype Support Ubuntu Update WakeOnLan Wake On Lan Wifi Windows Windows 7 Phone Wireshark Wordpress XCode
  • depicus in africa

    depicus in africa
  • friends

    • Agency Manager
    • AllClear Travel
    • Climbing Tikes
    • Globe Bloggers
    • Marchday
    • The Travel Toad
  • gallery

    IMG_3244 IMG_3221 IMG_2962 IMG_2264
  • videos

    Vimeo

    YouTube
  • twitter

    • Holy geekness batman we have an Arduino doing Wake on Lan forwarding programmed in less than 4 hours… amazing - #iamanubergeektoday view
    • Arduino WoLF app coming along nicely view
    • RT @pasm69: On the one hand we are in a #drought says #thameswater, on the other £4.1B to throw rainwater down the #supersewer #itisjust ... view
  • recent comments

    • Sef: Yo, thats 720p @ 60fps. Huge Difference… in file size, processing, everything. DSLRs aren’t there...
    • Finson: Worked..!! Replaced all the InstallOnLHS and InstallOnWinXP with value 0 and the installation completed...
    • Geux: Terminal command didn’t work, but editing the plist manually did the trick. Thanks !!!
    • Nebras Alattar: Hi The code that you posted is very useful, but i faced a problem when i run the app i got the...
    • leon: how can I get the ImageIO.framework ? I’ve read that it doesn’t exist for iphone!!!! Can anyone...
  • archives

    • May 2012 (2)
    • April 2012 (4)
    • February 2012 (8)
    • January 2012 (6)
    • December 2011 (7)
    • November 2011 (1)
    • October 2011 (2)
    • September 2011 (2)
    • August 2011 (4)
    • July 2011 (6)
    • June 2011 (9)
    • May 2011 (8)
    • April 2011 (2)
    • February 2011 (6)
    • January 2011 (14)
    • December 2010 (9)
    • November 2010 (8)
    • October 2010 (14)
    • September 2010 (6)
    • August 2010 (9)
    • July 2010 (1)
    • June 2010 (2)
    • May 2010 (2)
    • April 2010 (2)
    • March 2010 (11)
    • February 2010 (3)

Copyright © - depicus | Entries (RSS) | Comments (RSS)

WordPress theme butchered and amended by me.