Gamerlegend

0

votes
0

answer
6

views

Logging out to a specific view in react native

I'm a beginner to react native development. At the moment I'm trying to set my navigation for the login logout process. This is my app flow right now Home -> SignIn -> Dashboard. Now when the user clicks the logout button in the dashboard it should go back to Home screen. This works well for the fir...
Gamerlegend
1

votes
3

answer
1.8k

views

Push view of storyboard in accessorybutton tapped

I have storyboard named "MainStoryboard_iPhone.storyboard" and it has 2 views. The first view has a table cell with disclosure button. I can drag drop the table cell to other view and show the view, but I need to do it programmatically only when user click on accessory button without using segue. Th...
Gamerlegend
1

votes
1

answer
321

views

Calling of function of one page from another page in blackberry cascades using qml

In my application I have a main.qml which has a navigation pane that goes to homepage.qml and from there to profilepage.qml. When I come back from profilepage to homepage I need to trigger a function in home page. I noticed that whenever I pop back I get a call onPopTransitionEnded in the main page....
Gamerlegend
1

votes
4

answer
1.2k

views

Hide Multiple UIButton in single button click

I have 5 buttons in my xib, Button 1 to 4 is mapped to -(IBAction)btn1to4:(UIButton *)sender; Button 5 is mapped to -(IBAction)btnFive:(id)sender; Initially all the 4 buttons are hidden and only button 5 is visible, What I need is when I click on Button 5 all the 4 buttons should appear and when...
Gamerlegend
2

votes
1

answer
234

views

How to wait for the delegate method to complete for actionsheet inside a block

I'm trying to create an actionsheet that will contain the list of twitter account, this is my code. This is the code of some important methods //SocialNetworking.m file - (BOOL)loginWithTwitterCompletionBlock:(UIView *)sender :(void (^)(User *,ACAccount *selAccount, NSError *))completionBlock { ACAc...
Gamerlegend
2

votes
2

answer
1k

views

UIButton inside scrollview not triggering action

I have a view called subADCview inside a scrollView, this subADCView generates button dynamically. Currently if the number of buttons doesnt fit in single line(i.e in my subADCview which is about 320 width and 54 height) the view height expands and it becomes scrollable. And there is also provision...
Gamerlegend
2

votes
3

answer
2.1k

views

MFMailComposeViewController not populating recipients in ios 5

I'm trying to send mail to list of email array that I receive from database, when I send the recipient list gets populated in iOS 7 but when I tried in iOS 5 the recipient list doesn't get populated. Any Idea why? This is my mail function -(void)sendEmailToContacts:(NSArray *)fList withText:(NSStrin...
Gamerlegend
2

votes
4

answer
732

views

Getting EXC_BAD_ACCESS on table view

I am trying to do contacts app on Xcode, The contacts list displays but when I click on any name it throws error EXC_BAD_ACCESS, I have checked with NSLog and find that my array gets error while populating the tableview it self, this is my code: //Array initialized as @property (strong,nonatomic) NS...
Gamerlegend
2

votes
1

answer
1.4k

views

Signup using facebook in iOS app

I'm trying to implement signup/login using Facebook in my app. Currently I'm following the tutorial on Facebook developer Login Ui tutorial on Facebook developer I have imported the Facebook SDK and the following code also works FBLoginView *loginView = [[FBLoginView alloc] init]; [self.view addSubv...
Gamerlegend
2

votes
1

answer
100

views

Delete a value from NSMutable Array

I have a NSMutableArray named _groupCategoryCurrentIds whose data is in this format ( { id = 2; name = Fashion; }, { id = 5; name = Leisure; }, { id = 14; name = Clothing; }, { id = 17; name = Sports; }, { id = 2; name = Fashion; }, { id = 36; name = Men; }, { id = 34; name = Woodland; }, { id = 30;...
Gamerlegend
2

votes
1

answer
154

views

How to create gmail recipient format in iOS?

I need to create a view like below from the array of emails that I receive which also has the delete option. Something similar to that of gmail's mail recipient except in my this should be scrollview. My main issue is to create the background with delete button which stretches based on the email le...
Gamerlegend
2

votes
1

answer
857

views

Creating core data for chat app in swift

I’m developing an application similar to an simple chat app and I need to use core data to save/fetch the chats based on specific user. I have now successfully created a model to save users, now I need to link them to their chats. For Saving user data I’ve created Entity UserData and below are...
Gamerlegend
2

votes
3

answer
5.7k

views

UIPopoverPresentationController should have a non-nil sourceView or barButtonItem set before the presentation occurs on iOS 9

I'm trying to show a popup using a custom UIPopoverPresentationController class. But it crashes with the error() should have a non-nil sourceView or barButtonItem set before the presentation occurs. Below is my button click code where the crash occurs. - (IBAction)showPopup:(UIButton *)sender { View...
Gamerlegend
2

votes
3

answer
1.6k

views

Invoking button action in Unit Test in Xcode

I am trying to write a unit test case for calculator in Xcode, currently I am writing test case for the add function. This is my digit pressed function: - (IBAction)digitPressed:(UIButton *)sender. I have seen an example where if the method name is - (IBAction)digitPressed:(id)sender, you c...
Gamerlegend
2

votes
1

answer
586

views

Blank Simulator screen for Xcode 9 beta 4 on Hackintosh 10.12.6

I'm using hackintosh version of 10.12.6 and I already have Xcode 8.3.3 which works fine. Today I installed Xcode 9 beta 4 and when I try to run it, the simulator is giving me blank screen with weird graphics like in below image and it stays like that forever. Things I tried as per other forums 1.Rei...
Gamerlegend
2

votes
4

answer
1.3k

views

Check for active internet connection throughout the app in ios using Reachability class

I'm building an app where its required to sync offline data with server whenever internet connection is active. So currently if internet connection is lost in between while pushing data to server it will get saved in the database and whenever the connection is active it will push data to the server...
Gamerlegend
1

votes
2

answer
420

views

How to make particular part of function wait in iOS

I'm trying to do a share operation where I call a function with async block but in my next if statement I need to get the value which is completed in the block to continue. This is my code which will highlight more detail. I heard about NSLock and tried using it but it didnt work, may be I'm doing s...
Gamerlegend
3

votes
4

answer
1k

views

How to set background for UIButtons with dynamic width?

I have 3 button images named edit_category_left_up,edit_category_middle_up and edit_category_right_up I have written code to create buttons with dynamic width now I need to set background of these button like this image below using the above 3 images This is my current code to create dynamic button...
Gamerlegend
5

votes
4

answer
2.8k

views

How to sort ABAddressBook contact through First Name

I have a sort function that sorts the Address book by Last Name, I need to modify this code so that it will sort by first Name. Where do I need to make change in this code. I know its a simple change but I am unable to figure it out. This is the code that sorts the contacts list by Last Name ABAddre...
Gamerlegend
2

votes
0

answer
146

views

Change alert action background highlight while using UIAlertController

I'm trying to change the background highlight color for my alertcontroller. For eg in the below image, right now the default background highlight for a cell is light gray, I need to change it to some other color. I saw various post on changing the tint color but I dont need to change the title color...
Gamerlegend
2

votes
0

answer
175

views

Crash: Assertion failed: (!_tlsResumeBlock), function _handleTLSEvent for build released through testflight in iOS

I've released my app (iOS 10+) to pilot groups through testflight and recently I've been getting crash reports which points to some _handleTLSEvent. My app also has crashlytics installed which says the crash description as Assertion failed: (!_tlsResumeBlock), function _handleTLSEvent, file /BuildR...
Gamerlegend
4

votes
2

answer
1.1k

views

Setting textView.typingAttributes foreground color in Swift 4

I'm using the below method to set my textView.typingAttributes foreground color to red in Swift 3. textView.typingAttributes[NSForegroundColorAttributeName] = UIColor.red Now, that I've migrated to Swift 4 its showing error, I tried like below but its still showing error. Whats the correct way to se...
Gamerlegend
2

votes
1

answer
1.1k

views

Error while fetching Facebook friends in iOS

I'm trying to fetch facebook friendlist of a logged in user and it works fine in my account, but when I migrated the app details to a new account and changed the app ID and app secret I'm getting this error below Error Domain=com.facebook.sdk Code=5 "The operation couldn’t be completed. (com.faceb...
Gamerlegend
4

votes
3

answer
4k

views

Button click not responding in ScrollView when I create outlet of ScrollView in iOS

I have a Button1 outside ScrollView and another Button2 inside scrollview. I am using storyboard. I have used drag drop segue from both buttons to a different view. Button1 works fine, the problem is with Button2, it doesnt work no matter how many times I click, it only works when I click and drag (...
Gamerlegend
4

votes
0

answer
304

views

Crashlytics not showing some crashes

I've added crashlytics in my app and I've uploaded a build in our private download site which is available for test users. The version which I had uploaded my build used crashlytics version 3.9.0. In my fabric dashboard I was getting crashlog and last crash log was dated last Thu, Nov 9. For past fe...
Gamerlegend
15

votes
5

answer
8.9k

views

Simultaneous accesses to 0x1c0a7f0f8, but modification requires exclusive access error on Xcode 9 beta 4

my project uses both Objective-C and Swift code. When a user logs in, it calls a set of apis for user preference, I have a DataCoordinator.swift class which schedules the API operation and I make this calls from UserDetailViewController.m class to load user preferences. This use to work fine before...
Gamerlegend
8

votes
12

answer
12.8k

views

How to check if iPad is iPad Pro

The new iPad pro has different dimension and resolutions. If I check based on screen width would it be correct? I havent upgraded to Xcode 7.1 nor do I have the device so I can't check it yet. Will this check work? if([UIScreen mainScreen].bounds.size.width>1024) { // iPad is an iPad Pro }
Gamerlegend
4

votes
2

answer
261

views

How to round image downloaded from web in blackberry cascades using qml

I have a listview that displays a list of userdetails on right and profile pic on left which I get from back end. For downloading and loading the image I'm using a webviewsample image class from github and it works fine. Now I'm need to make the image round. As I searched through web I understand ni...
Gamerlegend