iphone

Getting rid of full-path filenames in obj-c binaries

Running "strings" on a (non-debug) iPhone app binary reveals a bunch of filenames of my source files... These are full paths and so reveal my username, which I'd rather keep private. I understand these strings are there for some Obj-C magic that I don't currently need, what I'm hoping is that there's a compiler switch I can flip that wi...

How to show AdMob ads in real iPhone device?

I want to integrate AdMob ads in my iPhone app. I'm using IB way to add the view and follow AdMob's pdf guide: 1. Add AdMob group(AdMobView.h,AdMobDelegateProtocol.h,libAdMob.a) 2. Add required frameworks(AudioToolbox,MediaPlayer,MessageUI,QuartzCore) 3. Add TouchJSON group 4. Add IBSupport group(AdViewController.h,AdViewController.m) ...

Open GL ES 1.1 and iPhone games

Will iPhone games that draw 2D textures like this: glPushMatrix(); glTranslatef(xLoc, yLoc, 0); [myTexturePointer drawAtPoint:CGPointZero]; glPopMatrix(); work with newer iPhones (that support OpenGL ES 2.0)? I'm asking because I just learned OpenGL ES 2.0 doesn't support glPushMatrix etc. Cheers! ...

Getting exception when coming back while loading data in controller while using LibXml.

Hi All, In my project i using LibXml to parse data, when i select a row in first controller i will take to next conttroller where i will get data using libxml if i click on the back button while loading the page i am getting exception. if i click afetr loading is completed it is working fine ca any one help me. the exception is showing...

Is this a UITableView? How does this work?

Click the header section(or whatever it calls) will unfold the relative subcells,and the left triangle get rotated. I have no idea how to code this.Is there anyone help me? Any code snippets would be great help.Thanks a lot. ...

how to change the shape of UIView

Hi, Is it possible to create a UIView with rounded edges ? ...

ipod's repeat mode

my ipod's repeatmode is always in MPMusicRepeatModeDefault,How will turn it off/how to change its mode?.i used setRepeatMode method but that does not work out.thanks ...

Can an app read iCal data on the iPHone/Pad in OS 3? OS 4?

Pretty much the title: I'm interested in building an app that displays iCal calendar data. But cant find a direct to to do it. Am I missing something? do the changes in OS 4 make this possible? Thanks. ...

Creating a UIImage from a UIImageView that has been CGAffineTransformXXX'ed.

Hello, I have a UIImageView which has various transforms applied to the image (e.g. scaled and rotated). I would like to save the transformed image which now appears in the view, to a UIImage. Does anyone know how this is achieved? Thank you, Winston ...

Cancel UIScrollView scrolling

Is there a way I can cancel scrolling in 'scrollViewWillBeginDragging' based on certain conditions? ...

is there stack size in iphone?

Hi, Every RAM must have stack and heap (like CS,ES,DS,SS 4 segments).but is there like stack size in iphone,is only heap available?some tutorial say when we increase stack size , heap will be decreased,when we increase heap size ,stack will be decreased ...is it true..? or fixed stack size or fixed heap size ? any help please? ...

How to remove back button action while page is loading.

Hi All In my project i have a list when select on a item it will take to next controller using PushViewController. When i go there i will get data using libxml parser. But when i am clicking on the back button while loading it is showing exception. So i want to disable back button action till loading of data is completed how can i handle...

Turn off iPhone/Safari input element rounding

My website renders well on the iPhone/Safari browser, with one exception: My text input fields have a weird rounded style which doesn't look good at all with the rest of my website. Is there a way to instruct Safari (via CSS or metadata) not to round the input fields and render them rectangular as intended? ...

Safari on iPhone: CSS Positioning off by 1px

Safari on the iPhone renders my {position: relative; top: 80px;} div 1px too low (all other browsers work fine) - is there any way to fix this via conditional css? ...

error while fetching empty column from database in iphone

i wnant to fetch the data fromt the database but getting error when i try to get the empty column... i used the following code to do it.. NSString *aDescription = [NSString stringWithUTF8String:(char *)sqlite3_column_text(compiledStatement, 2)]; so if my second column is empty than i get exception ...

Push notification or thread with timer

Hi all, In my application, I'm having functionality like twitter that when you have not refreshed your screen, and if there're new messages then you get this message that "You have n new messages" and a refresh button, which on press will refresh the screen. I'm basically fetching all the data from an xml with some url. In case of thr...

How to play stream audio in iPhone/iPad

Hi, I want to play sounds from an internet server in my own program. But the sample codes Apple supplied concerned about sound play are all open an audio file, and then play it. I want to know how can I play PCM data from memory, which received from internet continuously. Either OpenAL or AudioQueue is OK. Thanks. ...

Can't display UIImage from UIImagePickerController when using IBAction

Hello guys, I 'm new to xcode. I try to select an image from the UIImagePickerController and then display this image pressing a button. But the simulator crashes. In the .h I use UIImage *dispimage; //in order to make a global image -(IBAction) open; -(IBAction) print; In the .m I have - (void)viewDidLoad { self.imgPicker = [[UIImag...

UITableView smooth scrolling performance

What makes scrolling so choppy on the UITableView when images are loaded? Is it because they need to be added as subviews? Or is it because images need to be cached? Both? ...

custom UIButton with skewed area in iPhone

I want to have a button on a screen with this image. this image is transparent from its corners as you can see here. UIButton *btn=[UIButton buttonWithType:UIButtonTypeCustom]; [btn setFrame:CGRectMake(xCo, yCo, kImageSizeWidth, kImageSizeHeight)]; [btn setImage:[UIImage imageNamed:@"aboveImg.png"] forState:UIControlStateNormal]; [btn...