Hello Everyone, I am a newbie in iphone development, yet wondering why i am not able to find any help regarding the keyboard keyup/keydown events, I actually want to detect which key is been pressed by the user via keyboard on iphone while inputting the text in the UITextField. I need an urgent help!! .....
Thanks in advance
Mehroz
...
Hi guys,
Been running instruments on my app. Its says i am leaking 864bytes & 624bytes from 2 NSCFString and the library responsible is Foundation.
So that leads me to believe thats its not a leak caused by me? Or is it?
Here is the offending method according to instruments. It seems to be a
substringWithRange
that is leaking.
-(...
My NSString is:
My NSString is like this:
NSString *myString =
(
“\n \n 24 K CLUB”,
“\n \n 3 DOLLAR CAFE”,
“\n \n A PEACH OF A PARTY”,
“\n \n A ROYAL AFFAIR CAFE”,
“\n \n AFFAIRS TO REMEMBER CATERERS”,
“\n \n AFRIKAN DELI” )
How to get rid of this new line character and white spaces, so that my new string will be like:
newString:
(
"2...
I'm trying to implement OpenFeint in my Cocos2D iPhone game, but here's something weird that I didn't find how to solve.
Here's how OpenFeint looks like when I initialize it:
http://img842.imageshack.us/img842/8564/screenshot20100926at520.png
And here's the code of the initialization:
[director setDeviceOrientation:kCCDeviceOrientationL...
Run into an interesting problem and not sure how to manage it.
What would be the best way to handle the AVAudioPlayer callback method, audioPlayerDidFinishPlaying, if, for example, an instance of AVAudioPlayer is created with a callback for when the audio has finished but the object containing the AVAudioPlayer (and callback) is dealloc...
I currently have two UIViews: one of a red background and the other blue. The blue view is a subview of the red view. What I would like to do is be able to "cut" out rectangles on the blue view so that the red view can be visible. How do you go about doing this?
...
I want to create two iphone apps with very similar code base. The only differences will be some settings and the UI skin. Instead of creating two xcode project and copy the all the code over. Is there a better way to set this up? for better maintainability? 95% of the code are the same.
...
I know you can use a javascript to do this
<script type="text/javascript">
touchMove = function(event) {
event.preventDefault();
}
Is there a way to do the same using objective-c?
...
Scenario 1:
For a UIViewController, is it better to (1) create an ivar for a UIView that I access again in 1 or 2 functions outside of loadView? Or, (2) should I just tag it in loadView and then use - (UIView *)viewWithTag:(NSInteger)tag to access it again in the other functions? I'm guessing that option 1 increases the memory by the siz...
Hi all,
Here is my problem,
I have 5000 arrays, I want to remove the elements in array4999 those are with identical name to array5000, then add to array5000. Comes out a new array,say NewArray1. then remove identical name elements from array4998 and comes out NewArray2. Iteratively ,till all 5000 arrays are done with filter and leave...
Hi, everyone,
I want to ask a question about iPhone. Is it possible to retrieve the modification time from the iPhone contacts of each record? Thank you.
...
I am able to load a big list of location onto my MapKit and display them all with a custom Pin image and annotation.
The issue i'm having is that I currently have all annotations displaying the same Title, Subtitle, and pinImage.
How do I make it so that I can set each annotation with its own Title and different Pin image?
I'm having a...
Is there a better way than using sysctlbyname to find the device model and filtering by supported models? I'm hoping for something clean like:
if ([UIImagePickerController isSourceTypeAvailable: UIImagePickerControllerSourceTypeCamera])
ANSWER: In the process of writing this, I found the answer. To keep anyone else from searching like I...
is it possible ?
i try to add it but it can not put inside of TabbarController, or it need to coding instead?
...
I know Core Data is not a database and there are many differences. Is this one?
In a database, I would commonly have the following
A ->> B ->> C
"A" has many "B" which has many "C"
The query, "Give me all A's which have c.attr = 'X' is easily written like:
select * from a, b, c where a.id = b.aid and b.id = c.bid and c.attr = 'X'
...
I have many textfield, that only support using type "A"/"B"/"C" only, I wrote a textfield delegate to check the user input, including the length and the content that they inputed. But I want to separate the delegate from the class file. How can I do so? Thank you.
...
Hello,
Is there a Step-by-step guide on how to upgrade OLD Apps to new SDK ?
Especially, which features from old version will not work in new one?
Creating this guide will help companies create toolkit for people who are struggling
...
For example: The UISearchbar within UITableView like of the iphone Address Book app scrolls with the the names.
Is it possible to stop it from scrolling so it stays on top?
Thanks!
...
I am trying to hide the navigational bars according to the cursor positons.so, that i can use the full screen of the iPhone.But i donno how to start it.Please help me.
...
i m making an iphone app that displays data from a website on a table view .basically i m atoring the website's data in an array and then display it on a table. now i want whenever the website update their data the user get the date when the data was updated .can anybody tell some different ways to do it?
...