Tag: ios

Retrieving particular lines of text from string..memory management issues

i am kind of new to iOS development as well as stack over flow .so if there is any problem with my post do tell .. i will correct them. I want to retrieve strings from the text(.rtf) file i have .. the file is within my application main bundle its content are #start word1 […]

how to force view controller to stay in portrait mode?

I have an iOS application with storyboard. I want my last viewcontroller to stay always in portrait mode. I’ve been reading and I found that since -(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation is deprecated I should use other methods like -(BOOL)shouldAutorotate -(NSInteger)supportedInterfaceOrientations -(UIInterfaceOrientation)preferredInterfaceOrientationForPresentation but i have tried so many combinations of this methods and I have not been able to […]

official alternative to implement Splitview as a subview for an IPad App?

I’m developing an app in IOS using Storyboard for the Ipad. I want to add UISplitViewController as a subview of my app. I want to generate this kind of output (see below image). when user click on FirstView’s ‘Next’ button, a second view-splitview should appear. Output: But Apple’s guidelines says that we can’t push UISplitViewController […]

Xcode chat app, creating dynamic views – a little lost

Am just about to start doing an iphone application which is supposed to have a multi user private chat. Something like facebook style, where the user has a list of friends and he can chat with them independently. I just need a little direction here If i have a list of users, let’s say i […]

I want to hide button after clicking on action method

My Sample code: – (IBAction)captureButton:(id)sender { captureButton.hidden = YES; currImage = [signatureViewController imageWithView:self.view]; NSLog (@”image %@”,currImage); imgView = [[UIImageView alloc]initWithFrame:CGRectMake(150,100,300,150)]; imgView.backgroundColor = [UIColor blackColor]; imgView.image = currImage; [self.view addSubview:imgView]; image.image = nil; } My prob is capturebutton is geting hidden the view.. please help Thanks in advance

SKSpriteKit maintaining constant velocity after collision

I am attempting to make my first iOS app and currently running into an issue. In my game, when the ball bounces I want it to bounce back to the same height and with the same velocity. Currently it does that just fine. However, when I rotate the hexagon and it hits an angle, it […]

My navigation bar is showing up in storyboard but not in the simulator

When trying to add a navigation bar for searching on the left button and eventually a setting button on the right bar button, the bar isn’t showing up in the simulator. Screenshot Should I be using a regular toolbar like the temporary one I have on the bottom? I’d prefer the search button for loading […]

XCode 7, no identity found

My certificate expires on 2017 and the provisioning profile is active. It used to work very well several days ago but for some reason I can’t build my app anymore. This is the error I get : C9B531B60712E22D5C0892366E9C330555929A3C: no identity found *** error: Couldn’t codesign /Users/cherif/Apps/Parkisseo/NoPark/Build/Products/ Debug-iphoneos/NoPark.app/Frameworks/libswiftCoreLocation.dylib: codesign failed with exit code 1 What should […]

How to create a UITableCell that has multiple subtitles

I came across this design image online and I am really puzzled on how could I make a UITableCell that has multiple subtitles and allows me to customised them in the way shown by the picture. My understanding is that one can only use 1 subtitle per cell. Is there a way to create a […]

How to bring the navigation bar on top of the camera frame?

I am creating a QR code scanner in my app. It includes the navigation bar, QRcode camera and a result box. Here is what I want to do. With navigation bar But when I run in my phone, the navigation bar is behind the camera frame. Without navigation bar I have tried to insert a […]