Tag: ipad

Fix iPad status bar orientation as portrait

I have an iPad application with a simple tab bar. I need to fix the orientation as portrait. I do that by setting “Portrait (bottom home button)” in the “Supported interface orientation” field in the plist file. The problem is that the status bar still move when rotating the iPad… how can I fix it […]

AES128 bit encryption string is not similar as on .net

I am Implementing the AES128 bit encryption/Decryption in iOS application for sending/receiving data from .net server, I almost done but during unit testing I got some issue in encryption string, some encrypted string are not similar as on .net server, Can say 98 percent strings are correct at both side but issue comes in 2 […]

Cannot “save for Enterprise Deployment”, ios ipa

I’ve developed a ionic 2 app which I want to be able to send through mail or host online somewhere as an iOS app for ipad – so I need to make it ipa. I’ve got an Apple Developer Enterprise Program account type, and XCode 8.2.1. I’ve managed to archive the app with success but […]

How to get Retina display iPad simulator in XCode 4.2, Mac OS 10.6.8 (Snow Loepard)

i’v been looking to kick start my app development for the new iPad(iPad-3). But i could not find a place where i can download/update my XCode inorder to get the retina display simulator. Apple released XCode 4.3.1 with iOS 5.1 SDK. But that requires Mac OS 10.7.3(Lion). Is it mandatory for me to upgrade myself […]

App crashes only in xcode instruments

I have a strange issue, I have developed an app , I analyzed the app from Xcode i.e Xcode>Product>Analyze, then fixed any memory leaks I got. I ran the app in ipad simulator it worked fine, no crash nothing, ran it on an iPad device;no crash no errors nothing. But when I tried to profile […]

Why does audio work in the simulator but not on my iPad?

I am working on creating a very simple app. 2 buttons, both play sound. Each clip lasts 1 second and responds to “TouchUpInside”. They are .caf files that I converted in iTunes. Here is my code, once again, it works in the simulator but not on the device: enter code here- (void)viewDidLoad { NSLog(@”InView did […]

Deleting in NSDocumentDirectory

I save in NSDocumentDirectory this way: NSLog(@”%@”, [info objectAtIndex:i]); NSArray *paths = NSSearchPathForDirectoriesInDomains( NSDocumentDirectory, NSUserDomainMask ,YES ); NSString *documentsDir = [paths objectAtIndex:0]; NSString *savedImagePath = [documentsDir stringByAppendingPathComponent:[NSString stringWithFormat:@”Images%d.png”, i]]; ALAssetRepresentation *rep = [[info objectAtIndex: i] defaultRepresentation]; UIImage *image = [UIImage imageWithCGImage:[rep fullResolutionImage]]; //—-resize the images image = [self imageByScalingAndCroppingForSize:image toSize:CGSizeMake(256,256*image.size.height/image.size.width)]; NSData *imageData = UIImagePNGRepresentation(image); [imageData […]

iOS :Call a method in specific time

I am trying to call a method on this time : 00:01 AM here is my code but I can’t find the problem why this code does not call my method. – (BOOL)date:(NSDate *)date hour:(NSInteger)h minute:(NSInteger)m { NSCalendar *calendar = [[NSCalendar alloc]initWithCalendarIdentifier:currentCalendar]; NSDateComponents *componets = [calendar components:(NSHourCalendarUnit | NSMinuteCalendarUnit )fromDate:[NSDate date]]; if ([componets hour ] […]

Restrict UIWebview to certain pages

I am trying to create a simple ipad app with a UIWebview that displays a form that a customer can fill in.. what i want to do is restrict the app so that it only allows the user to navigate to certain addresses.. (i.e. either something that allows the user to go to a specific […]

Displaying a PDF with UIWebView Not Working

So, I realize that there have been many questions regarding using a UIWebView to display a PDF in an app (on the iPad). I have reviewed everything I can find but I can’t seem to find any satisfaction. What I’m trying to do is very basic so I really don’t know why it’s not working. […]