Hi, everyone,
I want to ask a question about the iPhone application. The application can let the user to enter the information in a costumed table (not the contacts book). After that, the program will use the retrieved data to add to the address book. But I don't how to add the content to contacts book. Can any one help me? Thank you ve...
I'm currently in the midst of creating an app that requires a very nifty transition. I would like to be able to;
Invoke my [self presentModalViewControllerAnimated:YES]; and, instead of having CrossDissolve, Generic Flip, or CoverVertical, I would like to employ CoreAnimation to force it to flip from the right edge. Notice how the nor...
Hello to all,
I have an app with a navigation bar at the top. On one view that is a subclass of UITableView, I add a UIToolbar beneath the UITableView with the following code:
UIToolbar *toolbar = [[UIToolbar alloc] init];
[toolbar sizeToFit]; // Set the toolbar to fit the width of the app
CGFloat toolbarHeight = [toolbar frame].size....
I tried what is described in this post. Even though I was able to change the URL of the request, but the original URL was still loaded.
What I am trying to do is to insert an authentication string into the URL (i.e. http://user:pass@url) for those that don't already have it.
The URL I'm loading has frames, so the [[webview request] U...
So I'm currently testing out the UIView animations, and I noticed that the shadows rendered by CALayer (using [view.layer setShadowStuffHere]) disappear at the start of the animation and reappear at the end of the animation. Is there any way I can keep these shadows and have the shadows animate along with the UIView? I tried using shadow...
Hi everyone,
I guess the best thing to do is to show the code what I'm doing at the result:
This works:
if (sqlite3_column_text(statement, 0)) {
[marker setObject:[NSNumber numberWithInt: sqlite3_column_int(statement, 0)] forKey:@"id"];
}
This always returns false for the if statement:
if (sqlite3_column_int(statement, 0)) {
...
I'm trying to use the NSDate dateFromString method but I'm getting an warning and it's crashing the app. The code looks like:
NSString *pickerDate = [NSString stringWithFormat:@"%@", timeSelector.date];
NSDate *defaultDate = [NSDate dateFromString:pickerDate];
The warning is:
'NSDate' may not respond to '+dateFromString'.
It appear...
I am getting an EXC_BAD_ADDRESS crash when selecting a table's cell which should push a new view on the navigation controller.
Here is the stack trace (the CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION_ is always there):
I strongly suspect the new code I have added to load the initial data the app needs in a separate thre...
I am building an iphone facebook app. The backend servers need the sessionSecret string.
Whether I login using FBLoginButton, or resume my sessions using [session resume], the value of both the sessionSecret and expirateDate are always nil.
Do I need to do something special to get this data? Is it not relevant and that's why I can't ha...
Does anybody know why a UIPopover or UIActionSheet presented from a UIBarButtonItem in a toolbar in the inputAccessoryView doesn't rotate along with all the other view controllers?
The steps to reproduce this are:
In an Xcode iPad project, add a UILabel editable text field in IB.
Also in IB, add a UIToolbar with a UIBarButtonItem.
In...
Hi,
In my iPad app, I need to run some layout code to set the proper layout depending on the orientation. By default, the layout is configured for the landscape orientation, so in the case that the app starts in portrait mode, I need to take extra action to configure the views properly for display in portrait.
In my -application:didFin...
Hello,
I am new to working with Core Data, and am working with a UITableView. I have a toolbar with a UISegmentedController, and I want to filter the items in the UITableView based on the selected index. In other words, suppose I have a UITableView that displays Books (stored in Core Data) and a UISegmentedController with segments to ...
How to convert NSString 2010-08-03 04:37:31.0 to August 3, 2010?
Is it possible?
...
Hi all,
So I've built a few apps and am now trying my hand at building a piece of iPhone code that others can drop into their applications. Question is how do I hide the data elements in an object class header file (.h) from the user?
For example, not sure if people have used the medialets iPhone analytics but their .h does not have an...
Hi,
recently i've googled about iphone os security architecture over the net but i have yet to find any comprehensive documentation or whitepaper on iphone os security architecture.
Is there anyone who know some sources and is able point me to some of the references?
Thanks!
...
Hello All,
I want to remember the last screen of my app, means if I reopen my app, app should navigate me to the last screen where I were just before exiting app.
Thanks
Saurabh
...
Hey guys, I have an NSArray of NSNumber objects that I have successfully sorted in ascending order using the following:
[myArray sortedArrayUsingSelector:@selector(compare:)]
However, I need to sort this in descending order. I take it that compare: only sorts in ascending order. While I can go about reversing the NSArray, I am curious...
Hi,
I have a tabbar application with a navigation bar. For one of the actions I am instantiating a navigation controller programatically and adding a view with tableview. I want to remove this navigation bar and tableview programatically clicking a button on the new navigation bar. how to do this ?
I tried popview but it is not poping ...
I tried using a popover in my interface, but all the convenience features of the UIPopoverController made it impossible.
My goal is to use the popover's chrome, but none of the associated events or actions. I need it to stay displayed onscreen (no dismissal) and not be modal.
So now I'm considering building my own view using images. ...
How can I add text or characters into a Sprite. If it's not possible, is there any alternative to get the same effect?
NOTE: I am using COCOS2D framework.
EDIT:
I have tried in this way-
CCLabel* label = [[CCLabel alloc] initWithString:@"H!" dimensions:CGSizeMake([spriteObj contentSize].width, [spriteObj contentSize].height) alignme...