Skip to main content

Posts

Showing posts with the label ipad

Where and how the iBooks page flipping effects is programmed?

As far as I can read, ibooks format is similar to epub format http://iphoneincubator.com/blog/apple-events/thoughts-on-ibooks-author , a bunch of html/js files. But where/how the page flipping is programmed ? I have downloaded iBooks Author on my mac http://itunes.apple.com/fr/app/ibooks-author/id490152466?mt=12 , when testing on iPad iBooks 2, I can't get this flipping page effect whereas when I download iBooks from official library it has that page flipping effect. So could I modify the html/js generated by iBooks Author by hand to get that effect ? If yes how because I can't find any documentation searching the Internet.

removeFromSuperview and release memory management

I have a MBProgressHUD that I allocate as follows: self.progressHUD_ = [[[MBProgressHUD alloc] initWithView:self.view] autorelease]; if I call removeFromSuperview then would I have to call progressHUD release again? Also if I declare a property with something like this: NSString * title_; @property (nonatomic, retain) NSString * title_; then it is guaranteed that in my dealloc I should have a release on title right?

UIScrollView not scrolling although contentSize is smaller than UIImageView

So I have a UIImageView as a subview of UIScrollView, I've set the contentSize to be smaller than the UIImageView width and height, however it doesn't allow me to scroll.. why is this? Here's some code: UIImage * image = [UIImage imageWithData:data]; UIImageView * imgView = [[UIImageView alloc] initWithImage:image]; [imgView setUserInteractionEnabled:YES]; //[imgView setContentMode:UIViewContentModeScaleAspectFill]; [imgView setBackgroundColor:[UIColor clearColor]]; [imgView setAutoresizingMask:UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight]; [imgView setFrame:CGRectMake(0, 0, imgView.frame.size.width, imgView.frame.size.height)]; CGRect imgFrame; imgFrame.size.width = originalImageSize.width; imgFrame.size.height = originalImageSize.height; imgFrame.origin.x = imageOriginPoint.x;

Delegates in iphone

I am using custom Kal calender view library downloaded from github. I know very well and execute successfully how to create delegate protocol and implement them. But now in my application I have to do, when user click on date that date directly reflect to my UIViewController class. For that scenario I used @protocol delegate method but I got strange problem in it. Please see the following screenshot and suggest me where I am wrong, Then i synthesize my protocol but I got the below error. Why, where I am wrong?

iPhone, iPad script rule out

Is it possible to rule out a script load only when viewing site on Apple devices? For example I don't want this file to be loaded on iPhone/iPad: <script type="text/javascript" src="js/jquery.skinned-select.js"></script> Will be grateful for any help.

iPhone, iPad script rule out

Is it possible to rule out a script load only when viewing site on Apple devices? For example I don't want this file to be loaded on iPhone/iPad: <script type="text/javascript" src="js/jquery.skinned-select.js"></script> Will be grateful for any help.