Giter VIP home page Giter VIP logo

vkontakte-ios-sdk's Introduction

Vkontakte iOS SDK

This open source iOS library allows you to integrate Vkontakte into your iOS application include iPhone, iPad and iPod touch.

Requirements

Vkontakte iOS SDK works on iOS 5+ version and is compatible with ARC projects.

It depends on the following Apple frameworks:

  • Foundation.framework
  • UIKit.framework

You need also add MBProgressHUD to your workspace.

iOS 4 support with nonARC projects

You can find old nonARC version, supporting iOS 4+ in the nonArc branch. It depends on SBJson. This version is no longer supported.

Adding Vkontakte iOS SDK to your project

The simplest way to add the Vkontakte iOS SDK to your project is to directly add the contents of Vkontakte folder to your project.

  1. Download the latest code version from the repository (you can simply use the Download Source button and get the zip or tar archive of the master branch).
  2. Extract the archive.
  3. Open your project in Xcode, than drag and drop Vkontakte folder to your classes group (in the Groups & Files view).
  4. Make sure to select Copy items when asked.

You can also use CocoaPods to add Vkontakte iOS SDK as a dependency to your project.

License

Copyright (c) 2011-2012 Andrey Yastrebov

Except as otherwise noted, the Vkontakte iOS SDK is licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.html)

vkontakte-ios-sdk's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vkontakte-ios-sdk's Issues

init issue

  • (id)init
    {
    if ([defaults objectForKey:@"VKAccessTokenKey"]
    && [defaults objectForKey:@"VKExpirationDateKey"]
    && [defaults objectForKey:@"VKUserID"])
    && [defaults objectForKey:@"VKUserEmail"])

new accounts not require email - this optional parameter

'NSInvalidArgumentException' in getUserInfo

"Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'data parameter is nil'". Check responce for nil before use [NSJSONSerialization JSONObjectWithData:response options:kNilOptions error:&error]; add
if (!responce) return; before it

Crash + Cancel handling

SDK 6.0
For now we have crash on cancel button from nav bar or cancel in web view EXC_BAC_ACCESS to delegate from Vkontakte.m, if I make it strong - crash dissapear, but i'm not sure it's memory safe
Also when we click Cancel on login VK we will see some json about error authorization or something like that, to avoid it You can add

if ([[URL absoluteString] isEqualToString:@"http://api.vk.com/blank.html#error=access_denied&error_reason=user_denied&error_description=User%20denied%20your%20request"] || !NSEqualRanges([[URL absoluteString] rangeOfString:@"cancel=1"], NSMakeRange(NSNotFound, 0)))

in checking of cancel button clicked, i think vk api changed and now http://api.vk.com/blank.html#error=access_denied&error_reason=user_denied&error_description=User%20denied%20your%20request handling isn't even needed

Idea

Hi

Will be better to make it like singleton and add one method with block.
For example:

[[VKAPIClient center] makeRequestWithMethod:@"audio.getById" // api function 
                                            parameters:[NSMutableDictionary dictionaryWithObjectsAndKeys:
                                                    @"5340847_43763767", @"aid", @"1495645_973", @"oid", nil]
                                            uids:nil
                                             result:^(NSDictionary *json){
// manipulations with JSON results
}];

Thanks a mill

This sdk doesn't work if user blocked.

Requere logout in cancel authorizationDidCanceled delegate method.
Reproduce:

  1. User with old account (use email instead of mobile number ).
  2. Captcha show.
  3. SHow screen were you should enter mobile number.
  4. Tap cancel button.
  5. SDK decide that you logined but you in blocked state.

Пожалуйста, не копируйте данные из адресной строки для сторонних сайтов

Добрый день,

После третьего входа виден только экран авторизации с текстом:
"Пожалуйста, не копируйте данные из адресной строки для сторонних сайтов. Таким образом Вы можете потерять доступ к Вашему аккаунту."

P.S. Кнопка Отмена в этом контроллере не действует.

logout is broken

After logout you can try to login again. And in this case you can just tap "Log In" button with any values in fields (even empty). You will be loged in previous account, which you wish to log out

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.