Hi, Shark has identified a area of code to be improved - Unaligned loop start
and recommends adding -falign-loops=16 (gcc compiler flag). I've added this to
Other C flags in iphone Xcode both to the dependant project and top level project. However it still does not seem to affect the performance and Shark is still reporting the same pro...
-(IBAction)EnterButtonPressed:(id)sender
{
const char *sql = "SELECT AccessCode FROM UserAccess";
double result = ([Password.text doubleValue]);
if(sql == result )
{
NSLog(@"Correct");
}
else {
NSLog(@"Wrong");
}
}
...
I have a button inside the content of a UIPopoverController. This button runs a method called myAction.
MyAction has the form
- (void) myAction:(id)sender
so, myAction receives the id of the caller button.
Now, inside this method I would like to dismiss the UIPopoverController, but the only thing I have is the ID of the caller butt...
Is it possible to shrink the spacing between a cell header and cell text? Looking at the example below I'd like the header to be closer to the top of the cell that contains the other text.
Sorry, I don't have high enough reputation to embed images.
http://www.freeimagehosting.net/uploads/6afdd58c2f.jpg
...
I have a problem with threads objectiveC.
The line of code below contains the recv block the program waiting for a datum.
My intention is to launch a thread parallel to the program so that this statement does not block any application.
I put this code in my program but when active switch the program crashes.
Enter the code.
-(IBAction)C...
Hi,
I want to create an Event Calendar for my iPhone App. In a first instance the Event Calendar is supposed to list the Events and have a Details View with additional info. It is also supposed to contain an action to trasfer a specific event to the iPhone Calendar.
First thoughts go towards using a UITableView where I make the event da...
I'm trying to create an NSPredicate to find 'projects' that contain 'sessions' within a certain date range. I tried this at first:
[NSPredicate predicateWithFormat:@"ANY sessions.date BETWEEN {$STARTDATE, $ENDDATE}"];
But I get an exception:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason:
'to-ma...
Hello,
I'm having hard time while trying to search inside of UIWebView. I know that I need to use javascript for that but almost everything I found uses replacing the HTML code and searching by element.type. My HTML file is so big that it's not possible to use this approach and honestly I don't need highlighting. Could anyone help me to ...
In my application, there is one button in the navigation bar. I want it to work only for the 1t click of the user. If he continousally presses on it 2 or 3 times just after the 1st click the button shouldnt recieve the following ones. How can I do this?
My app always crashes if the user presses it for more than once. I dont want to make...
Hi I would like to in my application display something like: you're destination is 400 ft north west.
I currently use the getDistanceFrom method but that only gives me the feet between 2 locations.
Thanks for your help.
...
Everything is fine, my navigation controller display's my 'Menu 1' item, but when i click it there appears to be a problem with the:
[self.navigationController pushViewController:c animated:YES]; line it doesn't connect to the break point in the myClass file. so I think i've not joined something? but unsure what?
My second view with th...
I have some code which I think has extra release statements.
Is the code incorrect?
What is the end result?
I don't understand memory management well yet - even after reading lots of articles and stackoverflow answers. Thanks for straightening me out.
Update: The attached snippet works fine, but other code has the over-release prob...
Hi,
My navigationcontroller becomes nil after my "[self.navigationController popToViewController: [self.navigationController.viewControllers objectAtIndex:0] animated:YES];"
this is my scene:
InsertViewController - > [self.navigationController pushViewController:choiceViewController animated:YES];
ChoiceViewController -> [self.naviga...
Is there a "page turn" transition included in the iPad SDK that I can use? Or is that all coded by hand with core graphics?
...
I'm writing a simple iPhone app which lets a user access a series of calculators. It consists of the following:
UITableViewController (RootViewController), with the list of calculators.
UIViewController + UIScrollView (UniversalScroller), which represents an empty scroll view - and has a 'displayedViewController' property.
UIViewContro...
Hi,
I have a website that uses flash. I would like to convert the website so that iphone / ipad users can see my website. I understand that Iphone / Ipad can't render flash. What would be the best-practice to convert flash website to iphone / ipad compatible?
I am thinking HTML 5.
...
I am trying to get the code found here:
http://snipplr.com/view/26643/mbprogresshud-with-an-asynchronous-nsurlconnection-call/
to work in my project. It's using the private MBProgressHUD class however i keep getting exc_bad_access errors on lines 69 or 70 depending if you comment out the log statemet:
NSLog(@"float filesize: %f", [sel...
I have a UIDatePicker that shows (ex. April | 13 | 2010). I need to get each component value and set it as an integer so it can be put into three separate keys in a Plist.
MyMonth Number 04
MyDay Number 13
MyYear Number 2010
I can set a text label by using:
NSDateFormatter *df = [[NSDateFormatter alloc] init];
df.dateStyle =...
I am trying to set up a Navigation View where a user can enter in settings. Once a setting is finalized in the 3rd level (after a button press outside of the navigation bar), I would like to have the Navigation View popped back to the root. How can I do this?
...
I want to be able to add 1 cell to the top of a UITableView after the user clicks on a button. How can I achieve this?
Update:
I also want to hide the cell if the user clicks another button
...