Permalink
Browse files

Layout button and default image

  • Loading branch information...
lucascorrea committed Mar 2, 2012
1 parent d1af135 commit 90ec2dac7e1baa90533e1a8d488c0eb96cf17668
View
Binary file not shown.
View
Binary file not shown.
@@ -39,8 +39,9 @@
F99448F014FFF99F0017A5D8 /* twitter_load.png in Resources */ = {isa = PBXBuildFile; fileRef = F99448DC14FFF99F0017A5D8 /* twitter_load.png */; };
F99448F5150119510017A5D8 /* icon.png in Resources */ = {isa = PBXBuildFile; fileRef = F99448F4150119500017A5D8 /* icon.png */; };
F99448F71501195D0017A5D8 /* icon@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = F99448F61501195B0017A5D8 /* icon@2x.png */; };
- F9A4ACC9150142C500D73407 /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = F9A4ACC8150142C500D73407 /* Default@2x.png */; };
- F9A4ACCC150142CC00D73407 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = F9A4ACCB150142CC00D73407 /* Default.png */; };
+ F9A4ACD01501474500D73407 /* backgroundButton.png in Resources */ = {isa = PBXBuildFile; fileRef = F9A4ACCF1501474500D73407 /* backgroundButton.png */; };
+ F9A4ACD2150149A200D73407 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = F9A4ACD1150149A200D73407 /* Default.png */; };
+ F9A4ACD4150149AB00D73407 /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = F9A4ACD3150149AB00D73407 /* Default@2x.png */; };
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
@@ -117,8 +118,9 @@
F99448DC14FFF99F0017A5D8 /* twitter_load.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = twitter_load.png; sourceTree = "<group>"; };
F99448F4150119500017A5D8 /* icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = icon.png; sourceTree = "<group>"; };
F99448F61501195B0017A5D8 /* icon@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "icon@2x.png"; sourceTree = "<group>"; };
- F9A4ACC8150142C500D73407 /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default@2x.png"; sourceTree = "<group>"; };
- F9A4ACCB150142CC00D73407 /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = "<group>"; };
+ F9A4ACCF1501474500D73407 /* backgroundButton.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = backgroundButton.png; path = Resources/images/backgroundButton.png; sourceTree = "<group>"; };
+ F9A4ACD1150149A200D73407 /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = "<group>"; };
+ F9A4ACD3150149AB00D73407 /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default@2x.png"; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@@ -140,11 +142,12 @@
F99446DE14FEF6370017A5D8 = {
isa = PBXGroup;
children = (
- F9A4ACCB150142CC00D73407 /* Default.png */,
- F9A4ACC8150142C500D73407 /* Default@2x.png */,
+ F9A4ACD3150149AB00D73407 /* Default@2x.png */,
+ F9A4ACD1150149A200D73407 /* Default.png */,
F99448F61501195B0017A5D8 /* icon@2x.png */,
F99448F4150119500017A5D8 /* icon.png */,
F99446F314FEF6370017A5D8 /* SCTwitter */,
+ F9A4ACCD1501472300D73407 /* Resources */,
F994471114FEFB840017A5D8 /* Other Sources */,
);
sourceTree = "<group>";
@@ -315,6 +318,23 @@
name = Classes;
sourceTree = "<group>";
};
+ F9A4ACCD1501472300D73407 /* Resources */ = {
+ isa = PBXGroup;
+ children = (
+ F9A4ACCE1501473300D73407 /* images */,
+ );
+ name = Resources;
+ path = SCTwitter;
+ sourceTree = "<group>";
+ };
+ F9A4ACCE1501473300D73407 /* images */ = {
+ isa = PBXGroup;
+ children = (
+ F9A4ACCF1501474500D73407 /* backgroundButton.png */,
+ );
+ name = images;
+ sourceTree = "<group>";
+ };
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
@@ -373,8 +393,9 @@
F99448F014FFF99F0017A5D8 /* twitter_load.png in Resources */,
F99448F5150119510017A5D8 /* icon.png in Resources */,
F99448F71501195D0017A5D8 /* icon@2x.png in Resources */,
- F9A4ACC9150142C500D73407 /* Default@2x.png in Resources */,
- F9A4ACCC150142CC00D73407 /* Default.png in Resources */,
+ F9A4ACD01501474500D73407 /* backgroundButton.png in Resources */,
+ F9A4ACD2150149A200D73407 /* Default.png in Resources */,
+ F9A4ACD4150149AB00D73407 /* Default@2x.png in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Binary file not shown.
@@ -49,6 +49,7 @@ typedef void(^SCTwitterDirectCallback)(BOOL success, id result);
@property (nonatomic, copy) SCTwitterUserCallback userCallback;
@property (nonatomic, copy) SCTwitterDirectCallback directCallback;
+
+ (SCTwitter *)shared;
+ (void)loginViewControler:(UIViewController *)aViewController callback:(void (^)(BOOL success))aCallback;
+ (void)logoutCallback:(void(^)(BOOL success))aCallback;
@@ -323,7 +323,6 @@ - (void)statusesReceived:(NSArray *)statuses forRequest:(NSString *)connectionId
}
}
-
- (void)userInfoReceived:(NSArray *)userInfo forRequest:(NSString *)connectionIdentifier
{
if (self.userCallback) {
@@ -332,7 +331,6 @@ - (void)userInfoReceived:(NSArray *)userInfo forRequest:(NSString *)connectionId
}
}
-
- (void)directMessagesReceived:(NSArray *)messages forRequest:(NSString *)connectionIdentifier
{
if (self.directCallback) {
@@ -8,7 +8,7 @@
#import <UIKit/UIKit.h>
-@interface SCTwitterViewController : UIViewController
+@interface SCTwitterViewController : UIViewController <UITextFieldDelegate>
@property (retain, nonatomic) IBOutlet UITextField *messageText;
@@ -151,10 +151,22 @@ - (IBAction)directMessageButtonAction:(id)sender
if (success) {
//Return array NSDictonary
NSLog(@"%@", result);
- }
+ }else{
+ NSLog(@"Error : %@", result);
+ }
}];
}
+#pragma mark -
+#pragma mark - UITextFieldDelegate methods
+
+- (BOOL)textFieldShouldReturn:(UITextField *)textField
+{
+ [textField resignFirstResponder];
+ return YES;
+}
+
+
- (void)dealloc {
[messageText release];
[super dealloc];
Oops, something went wrong.

0 comments on commit 90ec2da

Please sign in to comment.