looping through an NSMutableDictionary
How do I loop through all objects in a NSMutableDictionary regardless of the keys? ...
How do I loop through all objects in a NSMutableDictionary regardless of the keys? ...
I use the following code to bring up a view -(IBAction) openSomeView{ SomeView *sv = [[SomeView alloc]initWithNibName:@"SomeView" bundle:nil]; [self presentModalViewController:sv animated:NO]; [sv release]; } How can I detect if this view has been created already and if so, then just show it now create a new object? Thanks ...
Hi i am new to iphone.. I have stored the images in array .I want to know how to display those images in UIImageView ,where the UIImageView should be created dynamically according to filelist count increases, in for loop. this is the code NSArray *filelist; NSFileManager *filemgr; int count; int i=0; int t=0; filemgr = [NSFileManager ...
Hello all, I wanted to clarify something: I.e when I add a UIVIEW To i.e another UIVIEW programatically. i.e [theview addsubview:thechildview]; I need to release thechildview because theview increments the retain count. Right? So basically if I have a loop and I am using that loop to initialise subviews and add the subviews to a vie...
Hi, i have a problem with the method "[NSStrng stringWithContentOfURL:url]"; all things worked so fine until i change my url from a web address to an ip address with which i got an empty string. Did you have a solution or an idea? Thks ...
I've started to play around with some 3d modelers a while ago. Now I'm curious: How can I bring such an 3D model to the iPhone or iPad, so that I can see it on screen and maybe even rotate it with gestures? 1) What's the best file format for the 3D models? 2) How would I load a particular 3D model file into openGL ES and then render it...
how to enable scrolling in sections of Table in IPhone? Can somebody help me out? ...
Hi, i have created an universal application using xcode 3.2.4. in my build setting i have set "target device" as 3.1.2. This application is working fine with iPhone 3G, iPhone 4 and iPod touch 3G. But i am facing "Unsigned" error if i try to install my universal application into my 2G iPhone which have iOS 3.1.3 I have included 2G iPhon...
Hello, I have some trouble getting a response using ASIHTTPRequest which is quite nerve-wrecking. I am sending a SOAP Request inside the POST-Body of an ASIHTTPRequest to a server. The Request is sending fine so far but the Response String is "(null)" according to the Console and the Length of the response Data is 0. However, when I sen...
how to make content of a web page fully scaled whatever the width/height of the device visible portion is? ...
I have a Uitableview that loads data from a parsed xml feed. when the feed is first parsed all the text data is stored in an entity NewsItems in core data. after the table is loaded the images asociated with each object are fetched asynchronously and stored in a separate entity NewsImages, after the feeds/images are stored locally all da...
My app plays a video in fullscreen mode when the app is started. Everything is working flawlessly from 3.0 to 4.1. However, if I compile the same code for a universal app, it will work on the iPad, but will not work on the iPhone (simulator) anymore. Has anyone solved this problem? Here's the code: if ([self respondsToSelector:@selec...
I have subclassed a tableview cell and added a couple of labels and images to the custom cell. [self.contentView addSubview:lblDesc]; [self.contentView addSubview:imagesToDisplay]; When i edit the tableView and press the "-" sign the delete button appears on top of the image and other contents. Some other apps squeeze the...
hi, i think it is a simple question but i dont know how to solve it. i have a NSString that containes html content. i want to extract some tags. NSString *string=@"test some text <img src='http://www.xyz.com/a.jpg' > blah blah <a href='asdfg'>aaaa</a> bbbb cccc"; i want to take img & "a" tag into new string. then i will display it i...
I use CGBitmapContextRef for large alterable image. Than I draw one's parts in UIView.drawRect. That's work well on iPhone 3GS - 17FPS. But on iPhone 4 calling subj method is very slow - and total FPS is 1.5! profiler says that: on 3GS invokes CGSBlendBGRA8888toRGBA8888 which takes 23% of total time. on 4G same code invokes argb32_samp...
Hi, I'm trying to open a popup window (to display another webpage) from my webpage on click of a hyperlink. I'm not able to achieve this on iPhone. I was wondering if there is any way to do this? Any pointer will be helpful. Thanks in advance. ...
I have successfully been able to add a custom UIMenuItem to the Copy & Paste menu in my iPhone app, and even subclassed UITextView to get rid of the standard menu items. However, what I need to do is to somehow capture the fact that the menu is going to be displayed before it actually happens, and add the word at the insertion point int...
I'm trying to build this iPhone sample: http://trac.pjsip.org/repos/wiki/Getting-Started/iPhone but I'm having trouble since I am new to both iPhone development and the Mac world. From the Build Preparation section, I've downloaded the source code, but step 2 here is to "set [my] config_site.h" to a particular value. Do I just double...
I have the following problem: I have a UITableView with some Text and some Images as content. The TextLabel of the cell displays the text and I add a UIView with some UIImageViews as its subview to the cells contentview. Everything works fine until I delete some cells. What happens is, I delete a cell (lets say the first) from the tabl...
Hi I am calling - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CustomCellIdentifier = @"CustomCellIdentifier"; CustomCell *cell = (CustomCell *)[tableView dequeueReusableCellWithIdentifier:CustomCellIdentifier]; if (cell == nil) { ...