unichar c;
c = [myString characterAtIndex:0];
unichar catchcar = [c lowercaseString];
error : invalid reciever type unicar.
I know lowercaseString is used to covert String not character. Is there any solution?
...
I am in need to get the direction of a person using IPhone GPS. Direction means where the person is heading. If he is heading towards North then it should say North or otherwise South, West, East any one out of these four.
Is there a way to get this value?
Added September 02, 2010
I just got that Magnetometer can help what I am look...
Hey guys,
So I am new to the development thing, making me yes a noob.
I am currently creating my first iPhone app and in it I have a countdown relating to when a web video service is launching.
Under the countdown I have a button that allows playing the video stream, I would like to create an if statement that tells the app to reference...
I have a MPMoviePlayerController, and I can successfully play a (local) video with it.
The duration property is not being set to the runlength of the video - even after I receive a MPMovieDurationAvailableNotification event, the value remains set to 0.
Has anyone seen this before?
...
I'm looking for a WebDAV server - best Open Source - for iPhone and iPad for integration in my app. It should be possible to list, download and upload files. I would like to point the server root on the 'Documents' folder of my app, so the methods should be mapped directly to the file system if possible.
On my search through the interne...
I am working on an image heavy iPad app. We implemented our own table view-esque control which reuses UIImageViews as a user scrolls the screen. To reduce network calls and make it perform better, I implemented a file backed UIImageView that writes the loaded images to the NSTemporaryDirectory and checks that before making a call to get ...
Is it possible to use a custom view as the move accessory that appears on the right hand side of the UITableViewCell when a UITableView is in editing mode?
...
Hey everyone,
I'm developing a presentation app for a client, and in the presentation the client is able to double tap a slide to view a "sub-slide", which means the current slide does a partial curl transition to present a full screen modal view.
My issue is that these main slides are animated videos (the sub-slides are all still imag...
I have a tab based app that basically has several tabs that are nothing more than scrollviews containing imageviews in them. The scrollviews can scroll, and zoom and all that fun stuff.
The problem I am running into, is that if you are in one tab, and shrink or scroll around in such a way that the image for that view does not fill the ...
Please do tell how I can make a call with the iPhone.
Below is the code I have written, but nothing happens when the button is clicked. Is it a problem of the simulator and would it work on the phone, or is there any mistake in code?
- (void)applicationDidFinishLaunching:(UIApplication *)application {
UIButton *uiButton_G_obj = ...
HI,
I am working on optimizing my iphone project for proper memory management.
my question is:
what's the difference between releasing an object inside dealloc or releasing in the same method where we init it?
Thanks!
...
I want to have an UIToolbar containing UIButtons with custom icons. As I can see, the highlighted appearence is provided (used when the button is being tapped). What I want is a default appearence for a selected icon (which I would control manually, bo [button setSelected]). According to HIG:
Don’t include a pressed or selected
app...
Hi all, I have a custom cell with a uitextfield inside. I want to hide the keyboard when the user touch the screen, I put a custom uibutton over my tableView, and in the touch up inside event, I call
-(IBAction) hideKeyBoard
{
[customcell.textfield resignFirstResponder];
}
is it the right way to hide the keyboard with a uitablevi...
Hi,
is there an easy way to change the background color of the navigation item on top of a view? I have a navigation based app and I only want that one view gets another background color. I created the views mainly with IB. I found the following solution (not tested):
float r=10;
float g=55;
float b=130;
float a=0;
UILabel *label = [[...
I've got an iphone app and I'm looking to port some of the data-layer objective-c code to a scripting language which can also run on an android phone.
Any suggestions on what to use? I'd also like to be able to push new scripts to the app for bug fixes. Not sure if this is against the iphone SDK agreement or not.
...
Hello,
I'm trying to calculate the distance between two places user Core Location. I've found a few posts that state to use
-(CLLocationDistance)distanceFromLocation:(const CLLocation *)location
Found some other test code in the thread below:
http://stackoverflow.com/questions/1171138/cllocationdistance-nan
I'm not sure how to put...
i have a uiactionsheet and the buttom button doesnt work correctly the first time i press it, or the second, but only numerous times after trying. I tried removing the cancel button at the bottom and leaving a button title however none of these steps solved the problem.
This is the code i am using:
UIActionSheet *aSheet = [[UIActionShee...
I'm trying to animate a button which moves around the screen. At any point, the user can push the button. But the button doesn't respond to touches. I've tried an animation block but the button simply moves immediately to its end coordinates, while the frame shows the animation (the button is called bubble):
[UIView beginAnimations:nil ...
I am getting a weird crash when I try to save my model. This is my code:
TJModel *model = [TJModel sharedTJModel];
NSFetchRequest *request = [[[NSFetchRequest alloc] init]autorelease];
[request setReturnsObjectsAsFaults:NO];
NSEntityDescription *entity = [NSEntityDescription entityForName:@"TJVideoList"inManagedObjectContext:[model ...
Hi,
I was wondering how the UILabel that displays the website's title in Mobile Safari is created? It's obviously some kind of a subclass and I've attempted to copy it by using my own subclass,but it just doesn't look the same. I also don't know which font they're using :/ Could anyone help me out please? :)
here's my class:
CGSize s...