I'm writing an iOS app, and I need to be able to detect if the device has a camera. Previously, I would check if the device is an iPhone or not, since only the iPhone has a camera - but with the launch of the iPod touch 4 this is no longer a viable option. The app functions without a camera, but the presence of a camera adds functionalit...
I am encrypting via the NSData AES128EncryptWithKey method and having problems decrypting it on the .Net side. I've read several posts that basically all say that my Salt and / or Initialization Vectors must be different and I suspect that my problem is related to that fact. However, I cannot find anything that says what the Salt used ...
Hello, i have a NSDictionary and i get objects and keys in 'id' type format , with the following code:
NSDictionary *temp =[[NSDictionary alloc]initWithObjectsAndKeys:array1,@"array1",array2,@"array2",nil];
NSInteger count = [temp count];
id objects[count];
id keys[count];
[temp getObjects:objects andKeys:keys];
Wh...
Does anyone know how to persist an NSOperationQueue to disk between application launches?
...
Hi!
I have a TabBarController with 4 views, and one of them is a scrollView. If i load this view, and then change the orientation of my device from portrait to landscape, the scrollview responds to the touches only 'till the pixel 320.
If later i go to another view, and then come back to the first, the scroll view works well even in la...
I have an app where I import a bunch of data and I want to to happen on a background thread. This was working well for a small amount of data but now it seems I am running into this error midway through the parsing and importing of large amounts of my data into Core Data:
Program received signal: “EXC_BAD_ACCESS”.
Here is the call to...
I am trying to implement a favorites window for a quotes application.
right now I have a button implemented with the following code:
- (IBAction)next2 {
[favoritesViewController.listData addObject:viewController.label.text];
[navigationController pushViewController:favoritesViewController animated:YES];
}
here favoritesViewController...
My settings bundle specifies a Multi-Value element of type PSMultiValueSpecifier exactly as described by Apple here.
I have all the required Keys entered, as well as the Titles array matching the values array in size. The default value is an integer, and matches a value in the values array (so no problems there).
My issue is a usabili...
Is there a way i can access the apps running on the iphone and either cancel them?
...
I put this in loadView and it works:
CGRect navFrame = [[UIScreen mainScreen] applicationFrame];
navFrame.size.height -= self.navigationController.navigationBar.frame.size.height;
UIImageView *imageView = [[UIImageView alloc] initWithFrame:navFrame];
But is there a variable like applicationFrame that gives the applicationFrame minus t...
Hello. I'm diving into iOS development and I just finished reading Apple doc "A closer look at table view cells", but I couldn't find the answer to my question. If I have a UITableView in one of the views of my iOS app, how can I increase the height of the cells? I assume this is something I would do in the cellForRowAtIndexPath deleg...
Okay so I have defined my DSNavigationManager class and it has a property called DSNavigationManagerStyle managerStyle:
typedef enum {
DSNavigationManagerStyleNone = 0,
DSNavigationManagerStyleDefaultNavigationBar = 1 << 0,
DSNavigationManagerStyleDefaultToolBar = 1 << 1,
DSNa...
I am using phonegap/jquery/jqtouch to develop an iPhone app. When testing the app with an iPhone 3G running iOS 3.0.1, jquery calls that make changes to the DOM (such as 'append()') do not work consistently.
I have an alert call right before a call to 'append' and have another alert call right after the call to 'append'. Both alerts w...
Hi All,
I am writing an iPhone app that uses AVFoundation for the camera stuff and I'm trying to save the UIImage from the camera into the Camera Roll.
It currently does it this way...
[imageCaptureOutput captureStillImageAsynchronouslyFromConnection:[imageCaptureOutput.connections objectAtIndex:0]
completionHandler:^(CMS...
Since I don't want to jailbreak my iPhone i'm developing a personal application that needs to access the Core Telephony framework.
In 4.x Core Telephony framework has gone partially public but most of its futures are still hidden and kept private.
I've joust downloaded the header files form seriot.ch
I've found a list of all the know...
What would be the way to draw a triangular button on the iPhone. It would be nice if I could also change its parameters (backgroundcolor, font etc..) as with the regular buttons.
Ideally I would like equilateral triangles.
...
My question is: is a unlocked iPhone treated the same way by Xcode? or in other words, can one develop using a unlocked iphone without any problem? When I say unlocked I mean not the official way.
I ask this because I have the possibility of beta testing my apps with some friends and some of them use jailbroken iphones and some just unl...
I'm writing an application that has a timer functionality built in. Unfortunately, I'm having problems with the NSTimer and I'm not sure what I'm doing wrong. Here is where I'm declaring the timer...
if(!myTimer)
{
NSLog(@"Setting up the timer!");
myTimer=[NSTimer timerWithTimeInterval:1
ta...
I have an iPhone application that has In App Purchases, and my application also pings my server whenever there is a successful or a failed IAP transaction, but I don't want to count IAPs that I make on my own test devices. How can I tell within the program whether or not I am in a sandboxed user account?
...
I have an XML file on a remote server. The user must log in to access this file. Is there away to download the xml page after the user logs into a UIWebview?
Then have NSXMLParser parse the downloaded page?
NSURL *pathURL = [NSURL URLWithString:@"http://se7ensins.com/forums/xml.php"];
NSXMLParser *parser = [[NSXMLParser alloc] initWithC...