Wednesday 16 July 2014

Blog for Angular JS


Hi Team,

Follow this blog , basic things can know to implement Angular JS

http://techiedreams.com

Monday 21 April 2014

Adding left padding to the UITextField, when add background Image


 Adding left padding to the UITextField, when add background Image


#import "QuartzCore/QuartzCore.h"  
  // First import this Framework
......

UITextField *commentTextField = [[UITextField alloc]initWithFrame:CGRectMake(40825034)];
    commentTextField.delegate = self;
    commentTextField.placeholder = @"Comment";
    [commentTextField setFont:[UIFont boldSystemFontOfSize:12]];
    commentTextField.textAlignment = UITextAlignmentLeft;
    commentTextField.leftView = [[UIView allocinitWithFrame:CGRectMake(001220)];
    commentTextField.leftViewMode = UITextFieldViewModeAlways;
    commentTextField.background = [[UIImage imageNamed:@"textBox.png"stretchableImageWithLeftCapWidth:7topCapHeight:17];
    [self.view addSubview: commentTextField];

Wednesday 16 April 2014

IOS 7 AVPlayer - AVPlayerItem duration incorrect in iOS 7


AVPlayerItem *playerItem = [AVPlayerItem playerItemWithURL:movieURL];
CMTime duration = playerItem.durationfloat seconds = CMTimeGetSeconds(duration);
NSLog(@"duration: %.2f", seconds);
This worked fine with iOS 6 but with iOS 7 for some reason it returns NaN. When inspecting  playerItem.duration the CMTime object has 0's with a flag of 17.
But player works fine, just the duration is wrong.
So over come this problem Please import these frameworks.
#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
#import <MediaPlayer/MediaPlayer.h>
#import <CoreMedia/CoreMedia.h>
#import <AVFoundation/AVAsset.h>

In place of above code you can paste this code:AVURLAsset *asset = [AVURLAsset assetWithURL: movieURL];Float64 duration = CMTimeGetSeconds(asset.duration);NSLog(@"duration..%f", duration);

Thursday 10 April 2014

Disable ARC for a Single file in a project in iOS

Disable ARC for individual files by adding the -fno-objc-arc compiler flag for those files.

You add compiler flags in Targets -> Build Phases -> Compile Sources. You have to double click on the right column of the row under Compiler Flags.

xcode

Sunday 2 February 2014

UITextfield's size change when enter large text

Hi,
In my app I have multiple textFields. When I enter small text than it will work fine, but when large text is entered than UITextField size changed.

Without Text:

       
                                                                                                       
With Small Text:






With Larger Text:   The textfield size also increased with respect to text .









I tried this one for overcoming the issue. but i don't have any change while using this one.

[yourTextField setAdjustsFontSizeToFitWidth:FALSE];

Thursday 23 January 2014

Hi all,

Can anyone please let me know how to delete an image ( a Blob element ) from the sqlite database in iOS?

Thanks in Advance
Tejaswini.S