This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <UIKit/UIKit.h> | |
@interface ViewController : UIViewController <NSURLConnectionDelegate> { | |
NSMutableData* _receivedData; | |
} | |
@property (weak, nonatomic) IBOutlet UITextField *txtName; | |
@property (weak, nonatomic) IBOutlet UILabel *lblData; | |
- (IBAction)btnFetchData1:(id)sender; | |
- (IBAction)txtFetchData2:(id)sender; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@class SecondViewController; | |
@protocol SecondViewControllerDelegate <NSObject> | |
- (void)doSomethingWithSecondViewController:(SecondViewController *)secondViewController; | |
@end | |
@interface SecondViewController : UIViewController | |
@property (nonatomic, weak) id <SecondViewControllerDelegate> delegate; | |
- (IBAction)tappedCloseModal:(id)sender; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (IBAction)tappedShowNewView:(id)sender { | |
SecondViewController *secondViewController = | |
[self.storyboard instantiateViewControllerWithIdentifier:@"secondViewController"]; | |
[self presentModalViewController:secondViewController animated:YES]; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ALTER TABLE fakeblog.entries | |
ADD PRIMARY KEY (id); | |
ALTER TABLE fakeblog.Users | |
ADD PRIMARY KEY (id); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <UIKit/UIKit.h> | |
@interface SecondViewController : UIViewController | |
@end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private Button mBtnSaveTodo; | |
private Button mBtnPickImage; | |
private Button mBtnMarkTodoComplete; | |
private TextView mLblTodoText; | |
private EditText mTxtTodoText; | |
private boolean mIsAddingNewTodo; | |
private String mTodoText; | |
private int mTodoId; | |
private ImageView mImageView; | |
private Uri mImageUrl; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@class TodoDetailsViewController; | |
@protocol TodoDetailsViewControllerDelegate <NSObject> | |
- (void)todoDetailsViewController:(TodoDetailsViewController *)controller didFinishWithTodo:(NSString *)todoId andTodoText:(NSString *)todoText; | |
@end | |
@interface TodoDetailsViewController : UIViewController<NSURLConnectionDelegate, UIImagePickerControllerDelegate, UINavigationControllerDelegate> { | |
@private | |
NSNumber* todoId; | |
NSMutableData* receivedData; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private class GetSASTask extends AsyncTask<String, Void, String> { | |
@Override | |
protected String doInBackground(String... params) { | |
getSas(); | |
return _blobImagePostString; | |
} | |
/*** | |
* Handles results of getting SAS. | |
* This happens on the UI Thread | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" | |
android:id="@+id/scrollview" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" > | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical" > | |
<TextView | |
android:id="@+id/lblAddPoiHeader" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Constants { | |
public static final String kFindPOIUrl = "http://yoursubdomain.azurewebsites.net/api/Location/FindPointsOfInterestWithinRadius"; | |
} |