Skip to content

Commit

Permalink
added CPString and CPAttributedString
Browse files Browse the repository at this point in the history
  • Loading branch information
bvallelunga committed Aug 18, 2015
1 parent 19fe6a5 commit b246ed6
Show file tree
Hide file tree
Showing 64 changed files with 4,473 additions and 1,366 deletions.
2 changes: 1 addition & 1 deletion Example/CoPylot/CPAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ @implementation CPAppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
CoPylot *copylot = [CoPylot sharedInstanceWithAppID:@"" andSecret:@""];
CoPylot *copylot = [CoPylot sharedInstanceWithAppID:@"19" andSecret:@"nZSwYdfUT0Omz0vGnI5IiJXoeYTyqauPCoxq"];
[copylot setVariables:@{
@"User ID": @1,
@"User Name": @"Brian",
Expand Down
11 changes: 11 additions & 0 deletions Example/CoPylot/CPTableViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,16 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
return cell;
}

- (void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
NSString *message = [CPString createWithTitle: @"popup" andVariables: @{
@"friend": [self.data objectAtIndex:indexPath.row]
} withDefault: @"hellow world"];

[[[UIAlertView alloc] initWithTitle: @"Test Message" message:message
delegate:nil cancelButtonTitle:@"Okay" otherButtonTitles:nil] show];

[tableView deselectRowAtIndexPath:indexPath animated:true];
}


@end
8 changes: 3 additions & 5 deletions Example/CoPylot/CPViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
@interface CPViewController ()

@property (weak, nonatomic) IBOutlet CPButton *button;
@property (weak, nonatomic) IBOutlet CPButton *marksButton;

@end

Expand All @@ -22,19 +21,18 @@ @implementation CPViewController
- (void)viewDidLoad {
[super viewDidLoad];

// Do any additional setup after loading the view, typically from a nib.
// Label 1
CPLabel *label = [[CPLabel alloc] initWithTitle:@"welcome"];

[label setVariables:@{
@"Referrer's Name": @"Chris"
}];

label.text = @"Start Test String!";
label.frame = CGRectMake(0, 40, self.view.frame.size.width, 250);
label.frame = CGRectMake(0, 40, self.view.frame.size.width, 150);
label.textAlignment = NSTextAlignmentCenter;
label.font = [label.font fontWithSize:35];
label.font = [label.font fontWithSize:25];
[self.view addSubview:label];

}

- (void)viewWillAppear:(BOOL)animated {
Expand Down
2 changes: 1 addition & 1 deletion Example/CoPylot/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<userDefinedRuntimeAttribute type="string" keyPath="blockTitle" value="Login Button"/>
</userDefinedRuntimeAttributes>
<connections>
<segue destination="lva-wJ-Oay" kind="show" id="m9y-Dt-yEw"/>
<segue destination="lva-wJ-Oay" kind="show" id="kdc-mv-7a4"/>
</connections>
</button>
</subviews>
Expand Down
24 changes: 14 additions & 10 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,16 @@ PODS:
- AFNetworking/NSURLSession
- CoPylot (0.1):
- AFNetworking (~> 2.3)
- Expecta (1.0.0)
- Expecta+Snapshots (1.3.4):
- Expecta (1.0.2)
- Expecta+Snapshots (2.0.0):
- Expecta (~> 1.0)
- FBSnapshotTestCase (~> 1.8)
- FBSnapshotTestCase (1.8.1)
- Specta (1.0.2)
- FBSnapshotTestCase/Core (~> 2.0.3)
- FBSnapshotTestCase (2.0.3):
- FBSnapshotTestCase/SwiftSupport (= 2.0.3)
- FBSnapshotTestCase/Core (2.0.3)
- FBSnapshotTestCase/SwiftSupport (2.0.3):
- FBSnapshotTestCase/Core
- Specta (1.0.3)

DEPENDENCIES:
- CoPylot (from `../`)
Expand All @@ -42,10 +46,10 @@ EXTERNAL SOURCES:

SPEC CHECKSUMS:
AFNetworking: 05edc0ac4c4c8cf57bcf4b84be5b0744b6d8e71e
CoPylot: 371fc6c96fa46f07fd9f4c9f19a39f15fb5574c9
Expecta: 32604574add2c46a36f8d2f716b6c5736eb75024
Expecta+Snapshots: ca15bfb57e7a0f78f86c7699c2c54ffacfa4ad2a
FBSnapshotTestCase: 3dc3899168747a0319c5278f5b3445c13a6532dd
Specta: 9cec98310dca411f7c7ffd6943552b501622abfe
CoPylot: 644961b3048c45e747e5e7f93f4277365a4be7f2
Expecta: 54e8a3530add08f4f0208c111355eda7cde74a53
Expecta+Snapshots: 29b38dd695bc72a0ed2bea833937d78df41943ba
FBSnapshotTestCase: d0eeca6bf87958e088b254396ae66873f971cfb1
Specta: cf3e4188cf35375c3ee2cd03f8db8f1f4ef98234

COCOAPODS: 0.38.0

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Example/Pods/Expecta+Snapshots/EXPMatchers+FBSnapshotTest.m

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions Example/Pods/Expecta+Snapshots/ExpectaObject+FBSnapshotTest.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions Example/Pods/Expecta+Snapshots/ExpectaObject+FBSnapshotTest.m

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Example/Pods/Expecta+Snapshots/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Example/Pods/Expecta/Expecta/EXPExpect.m

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Example/Pods/Expecta/Expecta/Expecta.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Example/Pods/Expecta/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b246ed6

Please sign in to comment.