The problem:
To re-sign a .ipa file with a different distribution provisioning profile.
To change the bundle identifier.
Required files:
The .ipa file.
The distribution provisioning profile. (.mobileprovision)
Entitlements.plist
Put all the files under the same directory.
Create "Entitlements.plist":
Copy the following code in a text file and make sure that the extension is (.plist).
<?xml...
Sunday, August 4, 2013
Check if a Facebook page is liked using AFNetworking.
Posted by Polaris on 11:45 AM
AFHTTPClient *httpClient = [[AFHTTPClient alloc] initWithBaseURL:[NSURL URLWithString:@"https://graph.facebook.com/"]];
NSString *link = [NSString stringWithFormat:@"https://graph.facebook.com/%@/likes/%@", USER_ID, PAGE_ID];
NSDictionary *params = @{@"access_token" : [[[FBSession activeSession] accessTokenData] accessToken]};
NSMutableURLRequest *request = [httpClient...
Posted in AFNetworking, iOS
Friday, August 2, 2013
iOS, Set CoreData up.
Posted by Polaris on 12:31 AM
1- Link against CoreData.framework
2- add the following to the appDelegate.h
@property (nonatomic, strong) NSManagedObjectContext *managedObjectContext;
@property (nonatomic, strong) NSManagedObjectModel *managedObjectModel;
@property (nonatomic, strong) NSPersistentStoreCoordinator *persistentStoreCoordinator;
3- add the following to the appDelegate.m
#import <coredata/coredata.h>
// Returns...
iOS email validator
Posted by Polaris on 12:10 AM
-(BOOL) isValidEmail:(NSString *)checkString
{
BOOL stricterFilter = YES; // Discussion http://blog.logichigh.com/2010/09/02/validating-an-e-mail-address/
NSString *stricterFilterString = @"[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}";
NSString *laxString = @".+@.+\\.[A-Za-z]{2}[A-Za-z]*";
NSString *emailRegex = stricterFilter ? stricterFilterString : laxString;
NSPredicate...
Posted in iOS
Friday, April 5, 2013
Implement a (Like) action for any object on Facebook (except the pages) using AFNetworking.
Posted by Polaris on 7:41 PM
NSURL *baseURL = [NSURL URLWithString:@"https://graph.facebook.com/"];
AFHTTPClient *httpClient = [[AFHTTPClient alloc] initWithBaseURL:baseURL];
NSString *link = [NSString stringWithFormat:@"/%@/likes", @"OBJECT_ID"];
NSDictionary *params = @{@"access_token" : [[[FBSession activeSession] accessTokenData] accessToken]};
[httpClient postPath:link parameters:params success:^(AFHTTPRequestOperation...
Posted in AFNetworking, iOS
Thursday, January 24, 2013
Twitter for iOS6 without the modal view.
Posted by Polaris on 11:40 PM
Hi,
I guess I got this one from some Stackoverflow question.
Link against Social.framework and accounts.framework.
#import <Accounts/Accounts.h>
#import <Social/Social.h>
=========================================
ACAccountStore *account = [[ACAccountStore alloc] init];
ACAccountType *accountType = [account accountTypeWithAccountTypeIdentifier:
ACAccountTypeIdentifierTwitter];...
Twitter for iOS5 without the modal view: (works for iOS6 as well)
Posted by Polaris on 11:29 PM
Hi,
I found this here.
Link the project against Twitter.framework and accounts.framework.
#import <Twitter/Twitter.h>
#import <Accounts/Accounts.h>
=============================================
- (void)postToTwitter
{
// Create an account store object.
ACAccountStore *accountStore = [[ACAccountStore alloc] init];
// Create an account type that ensures...
Subscribe to:
Posts (Atom)
Re-sign a .IPA file