- (IBAction)randomnum{
int randomNumber1 = 1+ arc4random() %(49);
label1.text = [NSString stringWithFormat:@"d", randomNumber];
Local declaration of randomNumber hides instance variable.
How can i get round this warning?
thanks
...
I am developing my project, but I found that the cocos2D project is quite useful, how can I add the the cocos2d into current project? thz.
...
Would I use a UILabel for that? Or is there something better?
...
Hi All,
I found this implementation, and i am not sure whether we can use this implementation and apple will bye-pass extra check, this is a base-64 implementation.
The source code link is
http://blog.objectgraph.com/wp-content/uploads/2010/04/CryptTest.zip
The web page link is : http://blog.objectgraph.com/index.php/2010/04/20/encry...
Hi all,
I have an mkmapview that i'm currently adding pins to, but for some reason when I call [mapView setRegion:[detailItem coordinateRegion] animated:YES]; the pin is off-centered (toward the right side of the screen) on the map. Here is the code for [deailItem coordinateRegion]:
- (MKCoordinateRegion)coordinateRegion {
MKCoord...
I have this encryption/decryption implemented and executes with no error, but i am unable to decrypt the data and im not sure whether the data is encrypted, kindly help.
- (NSData *)AES256EncryptWithKey:(NSString *)key {
char keyPtr[kCCKeySizeAES256+1];
bzero(keyPtr, sizeof(keyPtr));
[key getCString:keyPtr maxLength:sizeof(keyPtr) e...
I have a tab-bar controller that loads a RootView.
The RootView has 4 buttons that will load a UITableView
I don't want my tab-bar to be visible in the RootView so I added the following code:
-(void)viewDidLoad{
self.hidesBottomBarWhenPushed = YES;
}
When I initially load the app the tab-bar doesn't appear, but when I click on a ...
Hi
I would like to see if I can make a "search as you type" implementation, against a web service, that is optimized enough for it to run on an iPhone.
The idea is that the user starts typing a word; "Foo", after each new letter I wait XXX ms. to see if they type another letter, if they don't, I call the web service using the word as a...
Hello,
I am saving image in the camera roll using UIImageWriteToSavedPhotosAlbum but always get an black thumbnail even if the picture is correct.
Do you have pointers to address this?
Thanks in advance for your help.
Regards,
...
Hi i create simple web browser for my app and i don't know why when user click a link the address bar doesn't change as link address here is my code :
-(IBAction)webAddress:(id)sender {
[site loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:[webAdress text]]]];
[webAdress resignFirstResponder];
}
- (BOOL)webView:(UIW...
I have an app that works with tabs and webview. I already have it setup to refresh the page assigned to a tab each time the item on tabbar is selected. My problem now is that it takes some time to load the page and it's impossible to say if the page being displayed is the old or refreshed one.
What I want to do is add a "loading" screen...
I would like to design an app that has a RootView with 4 buttons. Clicking on each button will load another view that has its own tab-bar controller. The tab-bar controller for each of the views is different.
If so, how do I go about implementing this?
...
iPHone: We use MonoTouch, but Obj-C answers are ok.
My singleton domain object takes a while to get all the data so it runs internally parts of the fetch in a thread.
I need to inform the UI that the domain is done. Currently I do this. Is there a better way? In WinForms I would call Application.DoEvents() instead of Thread Sleep.
...
Hi Friends,
I am using AVAudioPlayer object to play an audio. I created an audioPlayer object initially. I play an animation and when ever animation starts I play the audio and pause the audio when the animation is finished. I initially found three memory Leaks using Instruments. (The responsible caller mentioned was RegisterEmbedCode...
Does anyone have a code snippet or a class that will take a long long and turn it into a 16 byte Hex string?
I'm looking to turn data like this
long long decimalRepresentation = 1719886131591410351;
and turn it into this
//Base 16 Hex Output: 17DE435307A07300
The %x operator doesn't want to work for me
NSLog(@"Hex: %x",decimalRep...
I want to use jQTouch to build iPhone app for large website. When searched for it, I understood that I must edit my HTML code for website to be Suitable to my app, how I can do this without conflict with the style for my website?
Also, what is the basic steps to using jQTouch ? just Add scripts and Initialize as here : http://code.googl...
Recently while trying to answer a questions here, I ran some test code to see how Xcode/gdb reported the class of instances in class clusters. (see below) In the past, I've expected to see something like:
PrivateClusterClass:PublicSuperClass:NSObject
Such as this (which still returns as expected):
NSPathStore2:NSString:NSObject
......
Of the three parts I want to move, only the last one actually moves. I can't seem to "recycle" the ease action I created.
How is this done the correct way?
- init
{
// initial setup
[self moveParts];
}
- (void)moveParts
{
id action = [CCMoveBy actionWithDuration:1 position:ccp(0,160)];
id ease = [CCEaseInOut...
I'm diving into iPhone OS development and I'm trying to understand how I can add multiple view objects to the "Left/Root" view of my SplitView iPad app. I've figured out how to programmatically add a TableView to that view based on the example code I found in Apple's online documentation...
RootViewController.h
@interface RootViewCont...
Hi all.
How can I link cloudmade api to my iPhone project? Any tutorials?
...