Hello,
So I am trying to probe the UIApplicationLaunchOptionsURLKey to see if my application was launched by another app. For example, what if I want to do something like this:
if (UIApplicationLaunchOptionsURLKey != NULL) {
[window addSubview:launchViewController.view];
} else {
[window addSubview:viewController.view];
}
In...
I am having a problem with memory management I think. My NSArray (called arr) is turning into different things at random times. I have no idea why. I have a .h file that that declares the array, and then I initialize the array using
NSString *input = [[NSString alloc] initWithData:myData encoding:NSACIIStringEncoding];
arr = [input com...
I'm working on a store front for my in app purchases. I have the items being loaded into an NSMutableArray within -(void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response however all my products start with numbers. I'd like to sort these in ascending order but whenever I use sortUsingSelecto...
I have an iPhone app which submits user entered data to a SQL database. It causes an error, either cuts off the data or enters "null" when special characters are used. Seems that apostrophes and question marks and periods are ok, but anything outside of that causes it to cut off the post or post nothing at all.
My SQL Query to insert th...
Hi Experts,
I'm using the three20 framework and added a TTListDataSource, but I want to change the hight of each Cell (optimal would be the high the text takes inside, so that nothing is cut).
I changed some values at Three20UI/TTTableSubtitleItemCell.h to change the inner high is no problem, but the dividing line is not accordingly
r...
I have an iphone3g with this function running in my ViewController
- (void)viewDidAppear:(BOOL)animated {
[super viewDidLoad];
}
I use a TabBar iphone app. But when I click from tab 1 to tab 2 and debug the secondView Controller it is stopped before the view is actually in the users view.
So there for when you click tab 2 until eve...
Hi,
I have created a UIScrollView in my app - adapted from this sample code: http://developer.apple.com/iphone/library/samplecode/Scrolling/Introduction/Intro.html
But I have no idea how to make the images clickable
Any suggestions please?
Thanks!
...
I've talked to a lot of people recently who say they are expecting to stop writing native mobile apps and start writing web apps once HTML5 gets more fully baked in mobile OSs. I just finished my first HTML5 deep dive, and I'm not yet convinced.
Will HTML5 work as a replacement development platform for native apps, or are there certai...
Hello,
I added a UITabBarController to my ViewController in IB, and created an iVar in the View Controller's class that is hooked up to the tabbarcontroller. I add the tabs in my viewDidLoad method, but the text and images for the tab bar items don't appear until they are clicked on.
Any idea why this happens?
...
Hi everyone
I have a question on how exactly to do the final distribution build for my app. I have actually successfully built this app already but now I am trying to make an updated version and to remember what I did right the first time. It all seemed to go wrong when my provisioning profile expired....
Anyway, I have my distribution...
In my iPhone app I want to have a UIPickerView with 2 components. Initially the left column will be wide and the right column narrow to enable the text on the left to be read easily to allow selection from it.
Once this column has been selected the user will click on the right column to select an item from it : when this happens I want ...
In one service i have developed, i am sending to user MMS, which consists of 6 images, in special order.
To set images in correct order, and add formatting i have used SMIL, which have worked well on the range of devices.
However, seems that iPhone is not recognizing SMIL at all. Images are ordered by file name alphabetically, and what ...
I am working on drawing anti-aliased lines in OpenGL-ES on iPhone. I am using an approach outlined in iPhone 3D Programming, called "Rendering Anti-Aliased Lines with Textures". The basis idea is to iterate through the line creating a bounding rectangle for each line segment (pair of vertices). This bounding rectangle can be represented ...
I am working on the iTuneU Stanford iPhone course HelloPoly drawing assignment, and I am getting a call to my object's init routine when I don't expect one. The callback seem to indicate that the call is coming from _loadMainNibFile (after other calls). What I am trying to understand is why is my object being init-ed implicitly. The sour...
I use an NSFetchedResultsController to populate a UITableView, and would like to know if it is possible to create different sections based on an attribute of my data model.
I am displaying a table of objects, and one of the properties of the objects is a BOOL that is set to indicate whether or not the object is active. I would like to ...
Hallo everyone. I would like to offer the user the possibility to (manually) select lat. and long. coordinates by touching a MKMapView. How can I achieve that?
I've seen that the MKMapView delegate offers the method convertPoint:toCoordinateFromView: . I think, that could be a good starting, but I don't know how to create a point from a...
Given a UITableViewController with a UISearchBar, how does one change the 'No Results' text that appears in the table view (after any characters are entered) to something like 'Search by Name'? The reason is that the search in question is performed remotely (and has about a second delay), so I can only perform the search when the user se...
I have some png's that are now resources in XCode.
I would like to replace the with other png's on the device after deployment.
How do I do that, while still being able to work with them in XCode?
I thing it should be "Documents" "Library" or "Settings" folder, but it is not so clear how to create them in xCode.
(This is an internal a...
Probably really a rookie question here about xcode (for the iphone)..
When I issue this command;
NSString *externalData = [NSData dataWithContentsOfURL:[NSURL URLWithString: @"http://blah.com/userlist.txt"]];
I can see it's download from my webserver.
How can I make this 1 line show in a label?
I tried;
label.text = externalData;
[e...
I have a PDF file with a font reference to STSong-Light which is not available on the iOS.
Therefor I can not display the correct characters defined with that font.
I took the STSong font file mentioned on Apples KB:
http://support.apple.com/kb/ht1538
… and put it into my project and added it to the plist.
The text is now no longer b...