Skip to main content

Posts

Showing posts from October, 2017

Video Calling In IOS Objective C

Video Calling Sources Project homepage on GIT — https://github.com/QuickBlox/quickblox-ios-sdk/tree/master/sample-videochat-webrtc Download ZIP - https://github.com/QuickBlox/quickblox-ios-sdk/archive/master.zip Overview The VideoChat code sample allows you to easily add video calling and audio calling features into your iOS app. Enable a video call function similar to FaceTime or Skype using this code sample as a basis. It is built on the top of WebRTC technology.            System requirements The QuickbloxWebRTC.framework supports the next:     * Quickblox.framework v2.7 (pod QuickBlox)     * iPhone 4S+.     * iPad 2+.     * iPod Touch 5+.     * iOS 8+.     * iOS simulator 32/64 bit (audio might not work on simulators).     * Wi-Fi and 4G/LTE connections. Getting Started with Video Calling API Installation with CocoaPods CocoaPods is a dependency manag...

How To Use Push Notification In IOS 10 In Objective C

Push Notification Use the UserNotifications.framework to add Linker Library framework. #import <UserNotifications/UserNotifications.h> Set Delegate <UNUserNotificationCenterDelegate> #define SYSTEM_VERSION_GRATERTHAN_OR_EQUALTO(v)([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch]!= NSOrderedAscending) AppDelegate.m didFinishLaunchingWithOptions // Register for Remote Notifications if(SYSTEM_VERSION_GRATERTHAN_OR_EQUALTO(@"10.0")) {      UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter];     center.delegate = self;     [center requestAuthorizationWithOptions:(UNAuthorizationOptionSound |                                                       UNAuthorizationOptionAlert | UNAuthorizationOptionBadge)      ...

How To Dial Call When Tap To Button In Objective C

Dial Call When Tap To Button In Objective C - (IBAction)Phonecall:(UIButton *)sender {           NSString *call=sender.titleLabel.text;          NSURL *phoneUrl = [NSURL URLWithString:[[NSString      stringWithFormat:@"telprompt:%@",call] stringByReplacingOccurrencesOfString:@" "    withString:@""]];         [[UIApplication sharedApplication] openURL:phoneUrl]; }

How To Get UILabel Height In Objective C

Get UILabel Height In Objective C - (CGFloat)getLabelHeight:(UILabel *)label {               CGSize constraint = CGSizeMake(label.frame.size.width, CGFLOAT_MAX);               CGSize size;               NSStringDrawingContext *context = [[NSStringDrawingContext alloc] init];               CGSize boundingBox = [label.text boundingRectWithSize:constraint                                                       options:NSStringDrawingUsesLineFragmentOrigin                                                       attributes:@{NSFontAttributeName:label.font}        ...

How To Use NSURLConnection In Objective C

NSURLConnection In Objective C -(void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response {            [self.webResponseData setLength:0]; } -(void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data {          [self.webResponseData appendData:data]; } -(void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error {          NSLog(@"%@",error); } -(void)connectionDidFinishLoading:(NSURLConnection *)connection {         NSString *theXML = [[NSString alloc] initWithBytes:        [_webResponseData mutableBytes] length:[_webResponseData length]    encoding:NSUTF8StringEncoding];        NSLog(@"theXML : %@",theXML);        NSData *myData = [theXML dataUsingEncoding:NSUTF8StringEncoding];        NSXMLParser *xmlParser = [[NSXM...

How To Use UISwipeGestureRecognizer In Objective C

UISwipeGestureRecognizer In Objective C Add In ViewDidLoad() UISwipeGestureRecognizer *swipeLeft = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(handleSwipe:)]; UISwipeGestureRecognizer *swipeRight = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(handleSwipe:)]; // Setting the swipe direction. [swipeLeft setDirection:UISwipeGestureRecognizerDirectionLeft]; [swipeRight setDirection:UISwipeGestureRecognizerDirectionRight]; // Adding the swipe gesture on image view [self.view addGestureRecognizer:swipeLeft]; [self.view addGestureRecognizer:swipeRight]; //Add this Delegate Method... - (void)handleSwipe:(UISwipeGestureRecognizer *)swipe { if (swipe.direction == UISwipeGestureRecognizerDirectionLeft) { } if (swipe.direction == UISwipeGestureRecognizerDirectionRight) { } }

How To Use UITableView In Objective C

UITableView In Objective C - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {           return number of Section (e.g 2); } - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {           return Array.count; } - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {             //Your Cell Hear... } - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {           return 10; }