Hey everyone,
I'm having a bit of trouble connecting intstruments to my App on a iPod touch device. Whilst debugging in the Simulator is possible, I get this error in instruments when trying to start a app:
Target failed to run: Remote exception
encountered : 'Selector'
processIdentifierForBundleIdentifier:'
not authorized for...
Command/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1 iphone
Can anyone slove my problem
is dis related to .mm file
...
Hi,
How do i add a new line characters to html body of mail composer?
I have a string:
NSString *emailBody = [NSString stringWithFormat:@"<html><b>%%0D%%0AHello,%%0D%%0AHere's a link to your product%%0D%%0A<a href=\"%@\">click here</a>%%0D%%0A best regards</b></html>", currentProduct.url_product_details];
[picker setMessageBody:email...
from 1 week if my gps app fail to retrieve signal (eg: testing in my home) i don't receive any aler.
i've setup my error notification in this way
- (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error { NSString *errorType = (error.code == kCLErrorDenied) ?
@"Access Denied" : @"Errore sconosciuto"; ...
So I'm trying to register for the MPMoviePlayerDidExitFullscreenNotification notification in my universal app (iPhone and iPad).
Problem is, OS 3.1.3 doesn't support this notification, and just crashes.
I've tried version checking, like so:
if ([MPMoviePlayerController instancesRespondToSelector:@selector(setShouldAutoplay:)])
{//Chec...
I have a UIButton in my MainWindow.xib
When I tap the button, I want to swap the view. How do I do that?
I also want to transfer some data between the views (such as color preference and a string)
ANy sample code OR links to where I can find my answer would be very helpful.
...
So I have been working on a problem with UIView on the iPad. Essentially I have a splitview as the root view and I want to overlay my custom image view over top of the splitview (This is because the splitview must be the root view). The problem that I have, is when I call addSubview on my splitview the subview gets displayed in its def...
Hello,
I am generating a hash from a NSString, using [myString hash] and the result I get is a negative value.
The Apple's documentation is saying :
(NSUInteger)hash
Return Value An unsigned integer that
can be used as
Any idea ?
** Edited **
Try this code in your device :
NSString *udidStr = [[UIDevice currentDe...
Hi,
I am new to iphone programming. I heard from few people that even if the iphone application is sold for money from itunes, it is possible to hack the application and install on another phone.
How much of this is true ? If true is there a way to programmatically control my application from getting illegally copied to jailbreaked or...
Hi,
I added the interfaceOrientation to my app. It works fine concerning the views. Some of the table-cells I defined by CGRects to position the text in the cell. In portrait-mode the cell is 300px long, in landscape-mode 420px. I use the following code to change the CGRects depending the orientation:
- (UITableViewCell *)tableView:(UI...
I have a Tab bar App with four tabs. Each tab loads the same UITableViewController.
I would like to fill the table based on which tab is tapped.
How?
...
I come from 3D animation and one of the basic things all 3D software have is the ability to create dummy objects. Dummy objects can be used to groups objects that can be rotated, moved or scaled together around a specific anchor point. This is the idea of what I am asking.
Obviously we can have fake dummies by using a view and put other...
I have an application which have code like:
window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; // UIWindow *window;
viewController = [TopicsViewController new]; //TopicsViewController *viewController; //This is a UITableViewController
navigationController = [UINavigationController new]; // UINavigationController *...
I'm successfully setting a date-picker with an initial date from a plist, but I see some unwanted blue values in the month, day, and year components, presumably corresponding to current date. So if today is April 18, 2010 and initial date being set is March 19, 2008, it looks like this (bold represents the blue):
January 17 2006...
I have managed to do pretty complex things on iPhone but I am always stuck with views, frames, bounds, and simple stuff that defies any logic and don't work as expected.
I have a self.view in my code and it has a lot of subviews on it.
At some point of the code, I need to reduce the frame vertically to a specific size and later put it ...
I am trying to choose between implementing OpenGL ES 1.1 and 2.0 for my augmented reality app, which is only available on the iPhone 3GS.
About what we'll be doing:
1 -We are moving to OpenGL because CoreAnimation was exceptionally slow, and we'll be able to create a richer user experience.
2 - Our plans are to create a 3D environment...
I'm using iPhone SDK 3.1.3 and I tried look like that
self.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Back" style:UIBarButtonItemStylePlain target:nil action:nil];
It's not working and nothing effect. So, I tired
self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Back" st...
hi,
I want to put images from my photo library in to the EAGL view for some further processing. The image that are already in our resources folder will be taken by itself but mltiple or images from photo library can't. So any one knows how to put image on EAGL view in open GLES.
Regtards viral
...
I have a table view and if we touch a cell a video plays. I need to show the preview image of the video in the UITableViewCell. I have kept some dummy image in the cell at image place and remaining space ion cell is with some labels and buttons. I need the image preview of the video with play symbol on it. How can I make this ? Should I ...
The problem code:
NSString *query = @"SELECT Name FROM Category";
sqlite3_stmt *statement;
if (sqlite3_prepare_v2(database, [query UTF8String], -1, &statement, nil)
== SQLITE_OK) {
while (sqlite3_step(statement) == SQLITE_ROW) {
char *row =(char *)sqlite3_column_text(statement,0);
char *rowData = (char *)sqli...