Click here to Skip to main content
14,974,312 members
Home / Discussions / Objective-C and Swift
   

Objective-C and Swift

 
GeneralRe: iOS XMPP received message in coversation screen Pin
Member 1176696715-Jun-15 20:42
MemberMember 1176696715-Jun-15 20:42 
AnswerRe: iOS XMPP received message in coversation screen Pin
Dennis E White17-Jun-15 5:54
professionalDennis E White17-Jun-15 5:54 
Questionmake a system monitor using obj c. Pin
Member 116779679-May-15 13:00
MemberMember 116779679-May-15 13:00 
AnswerRe: make a system monitor using obj c. Pin
Richard MacCutchan9-May-15 21:10
mveRichard MacCutchan9-May-15 21:10 
GeneralRe: make a system monitor using obj c. Pin
Dennis E White15-May-15 5:25
professionalDennis E White15-May-15 5:25 
GeneralRe: make a system monitor using obj c. Pin
Richard MacCutchan15-May-15 5:41
mveRichard MacCutchan15-May-15 5:41 
GeneralRe: make a system monitor using obj c. Pin
Dennis E White15-May-15 6:04
professionalDennis E White15-May-15 6:04 
GeneralApp that converts human years to dog years Pin
Member 115920608-Apr-15 15:44
MemberMember 115920608-Apr-15 15:44 
// // ViewController.h
// DogYears
//
// Created by Steven Wimer on 2/26/15.
// Copyright (c) 2015 Steven Wimer. All rights reserved.
//

import <uikit uikit.h="">


@interface ViewController : UIViewController

@property (strong, nonatomic) IBOutlet UILabel *dogYearLabel;
@property (strong, nonatomic) IBOutlet UITextField *humanYearsTextField;
  • (IBAction)convertButtonPressed:(UIButton *)sender;
@end

//
// ViewController.m
// DogYears
//
// Created by Steven Wimer on 2/26/15.
// Copyright (c) 2015 Steven Wimer. All rights reserved.
//

import "ViewController.h"


@interface ViewController ()

@end

@implementation ViewController
  • (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    }
  • (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
    }
  • (IBAction)convertButtonPressed:(UIButton *)sender
    {
    float humanYears = [self.humanYearsTextField.text floatValue];
    float numberOfDogYears = humanYears * 7;
    self.dogYearLabel.text = [NSString stringWithFormat:@"%.0f years", numberOfDogYears];
}
@end

/Users/SwSAS1786/Desktop/Screen Shot 2015-04-08 at 9.20.13 PM.png

/Users/SwSAS1786/Desktop/Screen Shot 2015-04-08 at 9.21.15 PM.png
GeneralRe: App that converts human years to dog years Pin
Dennis E White11-Apr-15 9:34
professionalDennis E White11-Apr-15 9:34 
GeneralRe: App that converts human years to dog years Pin
Richard MacCutchan11-Apr-15 22:05
mveRichard MacCutchan11-Apr-15 22:05 
GeneralRe: App that converts human years to dog years Pin
Dennis E White13-Apr-15 10:09
professionalDennis E White13-Apr-15 10:09 
QuestionCan anyone help me solve this project? Pin
Member 115772012-Apr-15 13:46
MemberMember 115772012-Apr-15 13:46 
AnswerRe: Can anyone help me solve this project? Pin
Sascha Lefèvre2-Apr-15 14:23
professionalSascha Lefèvre2-Apr-15 14:23 
AnswerRe: Can anyone help me solve this project? Pin
Dennis E White11-Apr-15 9:32
professionalDennis E White11-Apr-15 9:32 
AnswerRe: Can anyone help me solve this project? Pin
Peter Webb5-May-15 3:30
MemberPeter Webb5-May-15 3:30 
QuestionLaunch Safari from another app then Autofill username and password Pin
picardy8-Jan-15 8:45
Memberpicardy8-Jan-15 8:45 
AnswerRe: Launch Safari from another app then Autofill username and password Pin
Dennis E White27-Jan-15 5:11
professionalDennis E White27-Jan-15 5:11 
AnswerRe: Launch Safari from another app then Autofill username and password Pin
C3D130-Jan-15 3:46
professionalC3D130-Jan-15 3:46 
QuestionStart java program from Objective C code Pin
DraqueD5-Jan-15 8:42
MemberDraqueD5-Jan-15 8:42 
AnswerRe: Start java program from Objective C code Pin
jschell5-Jan-15 9:37
Memberjschell5-Jan-15 9:37 
GeneralRe: Start java program from Objective C code Pin
DraqueD5-Jan-15 9:52
MemberDraqueD5-Jan-15 9:52 
AnswerRe: Start java program from Objective C code Pin
Richard MacCutchan5-Jan-15 22:39
mveRichard MacCutchan5-Jan-15 22:39 
GeneralRe: Start java program from Objective C code Pin
DraqueD6-Jan-15 5:04
MemberDraqueD6-Jan-15 5:04 
GeneralRe: Start java program from Objective C code Pin
Richard MacCutchan6-Jan-15 5:29
mveRichard MacCutchan6-Jan-15 5:29 
GeneralRe: Start java program from Objective C code Pin
DraqueD6-Jan-15 5:43
MemberDraqueD6-Jan-15 5:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.