I have a custom view with a layerClass override like:
+ (Class) layerClass
{
return [CAShapeLayer class];
}
I want to be able to add a CGImage to the contents property like so:
- (void) animateView
{
UIImage *layerImage = ...;
CAShapeLayer *layer = (CAShapeLayer *)self.layer;
layer.contents = layerImage.CGImage;
...
Our app can deal with say Pages files as an example and needs to both hand off files to other applications as well as receive files from other applications.
So we edit the plist CFBundleDocumentTypes to say that we can deal with Pages files. ('Default') mode.
When the user wants to send a .pages file onto another application (Likely t...
Hello!
Considering that I receive a pushed notification on my iPhone.
What happens:
If the application is started: is there a way to get the payload? Do I see the notification on my screen?
If the application is not started, is there a way to get the payload?
Thx for your answers
...
Problem:
I'm implementing an UITableViewController in conjunction with NSFetchedResultsController.
When the UITableViewController is instantiated the NSFetchedResultsController is constructed (substantially in the same way as CoreDataBooks example) with a different predicate, based on selection the user made on the previous controller.
...
When presenting my UIImagePickerController with editing enabled, what does this bounding box mean during the edit phase?
...
I'm trying to implement a UISearchBar within a UITableView, which behaves like the one in the "Artists" tab of the iPod application.
I have it hiding the navigation bar, and resizing the search box to show the "Cancel" button, etc. but am unable to get it to hide the section index titles.
- (void)searchBarTextDidBeginEditing:(UISearchB...
When the user changes NsuserDefaults in settings on the iPhone and activates my app after it being suspended, i want to reload the active view.
How can i do this?
...
Hi,
I want to use the app Display Recorder by Ryan Petrich to demonstrate my app. My app is using the camera image picker. When Display Recorder is enabled / activated the image picker always returns the last image that was taken before Display Recorder was activated. So I'm guessing that the screen recording blocks the camera to set th...
Hi everybody.
I would like to start a project about creating a 2D game for iPhone. I have already created some iPhone apps but none concerning game. The idea is simple : the user must drive a ball into a simple route composed of some obstacles before he gets cached by a wall that always go done. (I don't know if it make sense to you but...
So I'm currently using UI_USER_INTERFACE_IDIOM in conjunction with [[UIDevice currentDevice] model] to check if I'm on an iPhone, iPod or iPad. What I've found is that in the iPad simulator 3.2, UI_USER_INTERFACE_IDIOM still evaluates to UIUserInterfaceIdiomPhone (iPhone).
I'm wondering if this has something to do with my Targeted Devi...
Hello All,
I have a problem that I'm helping someone can shed some light on. I'm sure it is something very simple, but I just can't see it and could really use an extra set of eyes to help find this bug.
The app I'm working on uses UIImagePickerController to present a camera preview with the stock camera UI hidden. This preview im...
Hi all,
I'm very new to iPhone development so please bear with me. I'm following the tutorial from Apple for creating a "Hello World" application (found here). The problem is (and this is a problem I've had with all tutorials I've attempted to follow) that when I create the application with a subview inside the window, the subview its...
0
I am developing a iPhone App coupled with a .Net Web Service as the Backend. Need few clarifications on the same.
The configuaration of my project.
SQL SERVER2008 to store the data, .Net Framework 3.5 to provide Web Service interface, Iphone 3.1.
The Project Description: The SQL Server will store my data in the form of XMLs. Each X...
I have an app where I've a UINavigationController in a popover that displays some information. The root item contains a button showing a related Contact. I'd like to press the contact button and display the ABPeoplePickerNavigationController. I've got this code to do it:
ABPeoplePickerNavigationController *contactController = [[ABPeople...
Hi all !
I need to create a string using results of a textfield.
I use :
> NSString *username = [NSString stringWithFormat:myTextField.txt];
but i get the warning :
Format not a string literal and no format arguments.
Everything works but like i use more than 10 times this syntax i would like to erase this warning.
thanks...
Why would I be getting a different instance of HistoryViewController than the one I instantiated and pushed onto the navigationController?
The different instance created doesn't have any of the properties I've set.
ProfileHomeViewController.m
HistoryViewController *historyViewController = nil;
historyViewController = [[HistoryViewCon...
One UIViewController is shared by two Tab Bar Items (i.e., clicking either tab bar item will trigger the same view controller). How can I tell which Tab Bar Item was pressed to trigger the view controller to become active?
...
Hello!
I'd like to know what is the latency between sending a message from thé APNS server to the iPhone, once the provider sent it to the APNS server?
Is it few milliseconds? Few seconds? Few minutes?
Thx!
...
Via Xcode is there a quick way to deploy an app you've just compiled to an attached iPhone without actually launching it on the phone?
My scenario is that I've tested it out my app just fine in the simulator, now I just want to deploy it to my provisioned iPhone, grab the device and go without running it then and there. Sure, I can just...
I have the following code which fetches a string from an array of strings and splits the string into 2 parts.
NSString *temp = [tableViewData objectAtIndex:indexPath.row];
NSArray *tempArray = [temp componentsSeparatedByString: @"_"];
cell.textLabel.text = [tempArray objectAtIndex:1];
and the String which is added is as follows
newTi...